Rename ubus-status.sh to ubus-examine.sh

This commit is contained in:
桐话
2024-07-11 22:10:24 +08:00
committed by GitHub
parent 105be9ad2b
commit 7901b6e600
+4 -4
View File
@@ -12,7 +12,7 @@ check_model() {
case "$board" in
jp,tvbox|\
panther,x2)
/bin/ubus-status.sh > /dev/null 2>&1 &
/bin/ubus-examine.sh > /dev/null 2>&1 &
;;
*)
return 1
@@ -25,12 +25,12 @@ start() {
}
stop() {
local pidcount=$(pgrep "ubus-status" | wc -l)
local pidcount=$(pgrep "ubus-examine" | wc -l)
if [ "$pidcount" -eq 0 ]; then
pidcount=$(pgrep "ubus-status.sh" | wc -l)
pidcount=$(pgrep "ubus-examine.sh" | wc -l)
fi
if [ "$pidcount" -gt 0 ]; then
killall -9 ubus-status ubus-status.sh 2>/dev/null
killall -9 ubus-examine ubus-examine.sh 2>/dev/null
fi
}