use ps instead of ps x in the ntpclient hotplug script - busybox doesn't process the x

git-svn-id: svn://svn.openwrt.org/openwrt/packages@9081 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
nbd 2007-09-30 21:13:13 +00:00
parent bbbed31ff5
commit dfbe47c6d3

View File

@ -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
}