projects
/
openwrt
/
svn-archive
/
packages.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0606b80
)
use ps instead of ps x in the ntpclient hotplug script - busybox doesn't process...
author
Felix Fietkau
<nbd@openwrt.org>
Sun, 30 Sep 2007 21:13:13 +0000
(21:13 +0000)
committer
Felix Fietkau
<nbd@openwrt.org>
Sun, 30 Sep 2007 21:13:13 +0000
(21:13 +0000)
SVN-Revision: 9081
net/ntpclient/files/ntpclient.hotplug
patch
|
blob
|
history
diff --git
a/net/ntpclient/files/ntpclient.hotplug
b/net/ntpclient/files/ntpclient.hotplug
index a3ce8b859ab2e36282ffa99247fe60455cab899e..631d65f56869125b5bd9397579993bfa92dea6cb 100644
(file)
--- 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
}