From 0d61953a11f62bf88e405ad41c6839aebb38408d Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Sun, 30 Sep 2007 21:13:13 +0000 Subject: [PATCH] use ps instead of ps x in the ntpclient hotplug script - busybox doesn't process the x SVN-Revision: 9081 --- net/ntpclient/files/ntpclient.hotplug | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/ntpclient/files/ntpclient.hotplug b/net/ntpclient/files/ntpclient.hotplug index a3ce8b859a..631d65f568 100644 --- a/net/ntpclient/files/ntpclient.hotplug +++ b/net/ntpclient/files/ntpclient.hotplug @@ -16,7 +16,7 @@ config_cb() { config_get count $cfg count [ "$DONE" = "1" ] && exit 0 - ps x | grep 'bin/[n]tpclient' >&- || { + ps | grep 'bin/[n]tpclient' >&- || { route -n 2>&- | grep '^0.0.0.0' >&- && { /usr/sbin/ntpclient -c ${count:-1} -s -h $hostname -p ${port:-123} 2>&- >&- && DONE=1 } -- 2.30.2