mirror of
https://github.com/openwrt/packages.git
synced 2025-12-18 16:41:22 +00:00
ddns-scripts: always use the 'ps' output from busybox
The 'ps' command from 'procps-ng' is used in favour of 'ps' from 'busybox' when 'procps-ng' is installed. The problem is that the outputs are not compatible and the ‘grep’ is different for further processing. To fix this, always use the 'ps' command from 'busybox'. Signed-off-by: Florian Eckert <fe@dev.tdt.de>
This commit is contained in:
committed by
Florian Eckert
parent
83b0c8e27d
commit
ea285eb460
@@ -210,7 +210,7 @@ stop_section_processes() {
|
||||
|
||||
[ -e "$__PIDFILE" ] && {
|
||||
__PID=$(cat $__PIDFILE)
|
||||
ps | grep "^[\t ]*$__PID" >/dev/null 2>&1 && kill $__PID || __PID=0 # terminate it
|
||||
busybox ps | grep "^[\t ]*$__PID" >/dev/null 2>&1 && kill $__PID || __PID=0 # terminate it
|
||||
}
|
||||
[ $__PID -eq 0 ] # report if process was running
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user