update httpubus
This commit is contained in:
+16
-7
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user