remove stupid feature from ntpclient hotplug script and remove whitespace errors

git-svn-id: svn://svn.openwrt.org/openwrt/packages@12310 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
blogic 2008-08-14 16:45:55 +00:00
parent f6cbae320b
commit e23f71bc52
2 changed files with 1 additions and 8 deletions

View File

@ -19,5 +19,4 @@ config ntpdrift
config ntpclient
option interval 60
option iface wan
#option count 10

View File

@ -3,7 +3,6 @@
. /etc/functions.sh
unset IFACE
unset SERVER
unset PORT
unset INTERVAL
@ -45,9 +44,7 @@ load_settings() {
config_get interval $1 interval
config_get count $1 count
config_get iface $1 iface
[ -n "$iface" ] && IFACE=$iface
[ -n "$count" ] && COUNT=$count
[ -n "$interval" ] && INTERVAL=$interval
}
@ -55,10 +52,7 @@ load_settings() {
config_load ntpclient
config_foreach load_settings ntpclient
# check if we only listen to a single iface
[ -n "$IFACE" -a "$IFACE" != "$INTERFACE" ] && exit 0
DEF_ROUTE=`route -n | grep '^0.0.0.0'`
DEF_ROUTE=`route -n | grep '^0.0.0.0'`
NTP_RUNNING=`ps | grep $NTPC | grep -v grep`
case "${ACTION:-ifup}" in