update httpubus

This commit is contained in:
桐话
2024-10-25 02:28:51 -05:00
committed by GitHub
parent 6789583436
commit 62688062a7
+16 -7
View File
@@ -25,13 +25,22 @@ start() {
}
stop() {
local pidcount=$(pgrep "ubus-examine" | wc -l)
if [ "$pidcount" -eq 0 ]; then
pidcount=$(pgrep "ubus-examine.sh" | wc -l)
fi
if [ "$pidcount" -gt 0 ]; then
killall -9 ubus-examine ubus-examine.sh 2>/dev/null
fi
local board=$(board_name)
case "$board" in
jp,tvbox|\
panther,x2)
local pidcount=$(pgrep "ubus-examine" | wc -l)
if [ "$pidcount" -eq 0 ]; then
pidcount=$(pgrep "ubus-examine.sh" | wc -l)
fi
if [ "$pidcount" -gt 0 ]; then
killall -9 ubus-examine ubus-examine.sh 2>/dev/null
fi
;;
*)
return 1
;;
esac
}
restart() {