Fix count/clock setting arguments (#1527)

git-svn-id: svn://svn.openwrt.org/openwrt/packages@6944 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
florian 2007-04-13 10:54:34 +00:00
parent d84d04b95a
commit 5e7462deb8

View File

@ -12,11 +12,10 @@ config_cb() {
ntp_client)
config_get hostname $cfg hostname
config_get port $cfg port
config_get count $cfg count
ps x | grep 'bin/[n]tpclient' >&- || {
route -n 2>&- | grep '^0.0.0.0' >&- && {
/usr/sbin/ntpclient -c ${count:-1} -h $hostname -p ${port:-123} 2>&- >&-
/usr/sbin/ntpclient -s -h $hostname -p ${port:-123} 2>&- >&-
}
}
;;