Skip to content

Commit 039e891

Browse files
committed
Reconfigured so that on the goggle the process is run as background process and dinit can properly monitor it by the muxers PID
1 parent ad4c462 commit 039e891

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed
Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
#!/system/bin/sh
2+
setprop dji.hdvt_uav_service 0
3+
24
if [ ! -e "/dev/ttyS1_moved" ]
35
then
4-
setprop dji.hdvt_uav_service 0
56
mv /dev/ttyS1 /dev/ttyS1_moved
6-
/opt/bin/msp_displayport_mux 192.168.41.2 /dev/ttyS1_moved /dev/ttyS1 &
7-
setprop dji.hdvt_uav_service 1
87
fi
8+
9+
/opt/bin/msp_displayport_mux 192.168.41.2 /dev/ttyS1_moved /dev/ttyS1 &
10+
echo $! > /opt/var/run/airunit-osd-dji.pid
11+
setprop dji.hdvt_uav_service 1
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1-
type = process
1+
type = bgprocess
22
command = /opt/bin/airunit-osd-start.sh
3+
pid-file = /opt/var/run/airunit-osd-dji.pid
34
restart = true

0 commit comments

Comments
 (0)