remove stupid feature from ntpclient hotplug script and remove whitespace errors
authorJohn Crispin <john@openwrt.org>
Thu, 14 Aug 2008 16:45:55 +0000 (16:45 +0000)
committerJohn Crispin <john@openwrt.org>
Thu, 14 Aug 2008 16:45:55 +0000 (16:45 +0000)
SVN-Revision: 12310

net/ntpclient/files/ntpclient.config
net/ntpclient/files/ntpclient.hotplug

index f7d24c3b9d7d70f659fa0c19e77c46a3a3102ab3..1b56f1b7d80dfbd59c9272273c50404963391d7d 100644 (file)
@@ -19,5 +19,4 @@ config ntpdrift
 
 config ntpclient
        option interval 60
-       option iface    wan
        #option count   10
index 673afd3597d5fafefc0f220fe98a543b4e214153..87f0c0c0e39d197021d4f392d67b9e2028d77f0e 100644 (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