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

IPC/NVR/可视门铃等具备多媒体能力的设备,扫地机/AGV等机器人设备


Post Reply
chenquan
Posts: 15

日志
~ # ./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
~ #

Attachments
日志打印6.zip
(647 Bytes) Downloaded 156 times
Last edited by chenquan on 2022年 Oct 17日 17:24, edited 1 time in total.
郭老庄
Posts: 198

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

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

Post Reply