ser2net: update init scripts and wz_mini.conf, socat is deprecated

This commit is contained in:
Alfonso Gamboa 2023-07-19 13:35:27 -07:00
parent ac34e561cc
commit cde9a372fd
3 changed files with 2 additions and 4 deletions

View File

@ -14,7 +14,7 @@ remote() {
echo "#####$(basename "$0")#####"
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"
else
echo "Remote accessory support disabled"
@ -26,7 +26,7 @@ case "$1" in
remote &
;;
stop)
pkill socat
pkill ser2net
;;
*)
echo "Usage: $0 {start}"

View File

@ -49,7 +49,6 @@ BONDING_FAIL_OVER_MAC="0"
#####ACCESSORIES#####
REMOTE_SPOTLIGHT="false"
REMOTE_SPOTLIGHT_HOST="0.0.0.0"
#####VIDEO STREAM#####
RTSP_LOGIN="admin"

View File

@ -49,7 +49,6 @@ BONDING_FAIL_OVER_MAC="0"
#####ACCESSORIES#####
REMOTE_SPOTLIGHT="false"
REMOTE_SPOTLIGHT_HOST="0.0.0.0"
#####VIDEO STREAM#####
RTSP_LOGIN="admin"