mirror of
https://github.com/gtxaspec/wz_mini_hacks.git
synced 2024-11-25 23:07:17 +00:00
ser2net: update init scripts and wz_mini.conf, socat is deprecated
This commit is contained in:
parent
ac34e561cc
commit
cde9a372fd
@ -14,7 +14,7 @@ remote() {
|
|||||||
echo "#####$(basename "$0")#####"
|
echo "#####$(basename "$0")#####"
|
||||||
|
|
||||||
if [[ "$REMOTE_SPOTLIGHT" == "true" ]]; then
|
if [[ "$REMOTE_SPOTLIGHT" == "true" ]]; then
|
||||||
/opt/wz_mini/bin/socat pty,link=/dev/ttyUSB0,raw tcp:"$REMOTE_SPOTLIGHT_HOST":9000 &
|
/opt/wz_mini/bin/ser2net -c /opt/wz_mini/etc/ser2net.yaml
|
||||||
echo "Remote accessory support enabled"
|
echo "Remote accessory support enabled"
|
||||||
else
|
else
|
||||||
echo "Remote accessory support disabled"
|
echo "Remote accessory support disabled"
|
||||||
@ -26,7 +26,7 @@ case "$1" in
|
|||||||
remote &
|
remote &
|
||||||
;;
|
;;
|
||||||
stop)
|
stop)
|
||||||
pkill socat
|
pkill ser2net
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
echo "Usage: $0 {start}"
|
echo "Usage: $0 {start}"
|
||||||
|
@ -49,7 +49,6 @@ BONDING_FAIL_OVER_MAC="0"
|
|||||||
|
|
||||||
#####ACCESSORIES#####
|
#####ACCESSORIES#####
|
||||||
REMOTE_SPOTLIGHT="false"
|
REMOTE_SPOTLIGHT="false"
|
||||||
REMOTE_SPOTLIGHT_HOST="0.0.0.0"
|
|
||||||
|
|
||||||
#####VIDEO STREAM#####
|
#####VIDEO STREAM#####
|
||||||
RTSP_LOGIN="admin"
|
RTSP_LOGIN="admin"
|
||||||
|
@ -49,7 +49,6 @@ BONDING_FAIL_OVER_MAC="0"
|
|||||||
|
|
||||||
#####ACCESSORIES#####
|
#####ACCESSORIES#####
|
||||||
REMOTE_SPOTLIGHT="false"
|
REMOTE_SPOTLIGHT="false"
|
||||||
REMOTE_SPOTLIGHT_HOST="0.0.0.0"
|
|
||||||
|
|
||||||
#####VIDEO STREAM#####
|
#####VIDEO STREAM#####
|
||||||
RTSP_LOGIN="admin"
|
RTSP_LOGIN="admin"
|
||||||
|
Loading…
Reference in New Issue
Block a user