From ea285eb4606fcea851efe85d744a95782c06c62a Mon Sep 17 00:00:00 2001 From: Florian Eckert Date: Tue, 1 Apr 2025 09:06:49 +0200 Subject: [PATCH] ddns-scripts: always use the 'ps' output from busybox MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- net/ddns-scripts/Makefile | 2 +- net/ddns-scripts/files/usr/lib/ddns/dynamic_dns_functions.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/net/ddns-scripts/Makefile b/net/ddns-scripts/Makefile index 97e2d69bc8..32cbf26403 100644 --- a/net/ddns-scripts/Makefile +++ b/net/ddns-scripts/Makefile @@ -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 diff --git a/net/ddns-scripts/files/usr/lib/ddns/dynamic_dns_functions.sh b/net/ddns-scripts/files/usr/lib/ddns/dynamic_dns_functions.sh index c628ca1b23..5e157f3013 100644 --- a/net/ddns-scripts/files/usr/lib/ddns/dynamic_dns_functions.sh +++ b/net/ddns-scripts/files/usr/lib/ddns/dynamic_dns_functions.sh @@ -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 }