@@ -14,10 +14,10 @@ done
case "$ACTION"
in
"start")
- /usr/bin/xpra control :"$REMOTE_DISPLAY" start "/usr/bin/x11vnc -forever -shared -rfbport 5900 -listen localhost -nopw"
+ /usr/bin/xpra control :"$REMOTE_DISPLAY" start "/usr/local/bin/x11vnc_for_android_start.sh"
;;
"stop")
- /usr/bin/xpra control :"$REMOTE_DISPLAY" start "/bin/bash -c 'pidof x11vnc && kill $(pidof x11vnc)'"
+ /usr/bin/xpra control :"$REMOTE_DISPLAY" start "/usr/local/bin/x11vnc_for_android_stop.sh"
*)
exit 1
@@ -0,0 +1,2 @@
+#!/usr/bin/env bash
+/usr/bin/x11vnc -forever -shared -rfbport 5900 -listen localhost -nopw #2>&1 | tee /var/log/xpra-x11vnc.log
+pidof x11vnc && kill $(pidof x11vnc)
@@ -0,0 +1,3 @@
+ao=alsa:device=hw=0.3 # alsactl info
+ac=hwac3
+nosub=1