ddns-scripts: always use the 'ps' output from busybox
authorFlorian Eckert <[email protected]>
Tue, 1 Apr 2025 07:06:49 +0000 (09:06 +0200)
committerFlorian Eckert <[email protected]>
Tue, 1 Apr 2025 13:40:58 +0000 (15:40 +0200)
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 <[email protected]>
net/ddns-scripts/Makefile
net/ddns-scripts/files/usr/lib/ddns/dynamic_dns_functions.sh

index 97e2d69bc8421981f68d6c3b1e27f076f4f1efd6..32cbf26403b093689203f9ff9594b1c28f99a902 100644 (file)
@@ -8,7 +8,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=ddns-scripts
 PKG_VERSION:=2.8.2
-PKG_RELEASE:=66
+PKG_RELEASE:=67
 
 PKG_LICENSE:=GPL-2.0
 
index c628ca1b23cc3789c34f4e933e97ca1f5024f61f..5e157f30136cae0f450e76c91eedf7f61c7b3c90 100644 (file)
@@ -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
 }