Page 1 of 1

【已解决】【TuyaOS OS】tycam手动启动失败

Posted: 2022年 Oct 17日 09:09
by chenquan

日志
~ # ./tuya/app/skyeye/script/app/ty_startup.sh start
./tuya/app/skyeye/script/app/ty_startup.sh: line 29: syntax error: unexpected ";;" (expecting ")")
~ # cat -n ./tuya/app/skyeye/script/app/ty_startup.sh
1
2
3 #!/bin/sh
4
5
6 CMD=$1
7 WPA_CFG=/tuya/data/
8 WPA_CTL=/var/run/wpa_supplicant
9 TYDIR=/tuya/app/skyeye
10 BINDIR=${TYDIR}/bin
11 SCRIPTDIR=${TYDIR}/script
12 APPNAME=tycam
13 MONITORNAME=ty_monitor.sh
14
15 PATH="/usr/bin:/usr/sbin:/bin:/sbin:/tuya/app/skyeye/bin"
16 LD_LIBRARY_PATH="./:/usr/local/lib:/usr/lib:/tuya/app/lib"
17
18 export PATH
19 export LD_LIBRARY_PATH
20
21
22 case $CMD in
23 start)
24 #cd ${BINDIR}/
25 #tycam &
26 sleep 1
27
28 $(SCRIPTDIR}/app/${MONITORNAME} ${APPNAME} ${WPA_CFG} ${WPA_CTL} &
29 ;;
30
31 stop)
32 killall -9 ${MONITORNAME}
33 killall -9 ${APPNAME}
34 ;;
35 esac
~ #


Re: 【求助】【TuyaOS OS】tycam手动启动失败

Posted: 2022年 Oct 17日 09:33
by 郭老庄

你好,第28行,$(SCRIPTDIR}/app/${MONITORNAME} ${APPNAME} ${WPA_CFG} ${WPA_CTL} &
SCRIPTDIR的左边应该是“{”,而不是“("