From: John Crispin Date: Thu, 14 Aug 2008 16:45:55 +0000 (+0000) Subject: remove stupid feature from ntpclient hotplug script and remove whitespace errors X-Git-Url: http://git.openwrt.org/?p=openwrt%2Fsvn-archive%2Farchive.git;a=commitdiff_plain;h=a8be93662edbecd2a8bd24349e3bf7a36c3d1f9d remove stupid feature from ntpclient hotplug script and remove whitespace errors SVN-Revision: 12310 --- diff --git a/net/ntpclient/files/ntpclient.config b/net/ntpclient/files/ntpclient.config index f7d24c3b9d..1b56f1b7d8 100644 --- a/net/ntpclient/files/ntpclient.config +++ b/net/ntpclient/files/ntpclient.config @@ -19,5 +19,4 @@ config ntpdrift config ntpclient option interval 60 - option iface wan #option count 10 diff --git a/net/ntpclient/files/ntpclient.hotplug b/net/ntpclient/files/ntpclient.hotplug index 673afd3597..87f0c0c0e3 100644 --- a/net/ntpclient/files/ntpclient.hotplug +++ b/net/ntpclient/files/ntpclient.hotplug @@ -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