[packages] ntpclient: Allow ntpclient to run without default route installed
[openwrt/svn-archive/archive.git] / net / ntpclient / files / ntpclient.hotplug
index 634529cae016c34e01df1120e0d373d50128b23a..29f17c1775d54be1beb3ff83f5f1d6330ac020a9 100644 (file)
@@ -52,12 +52,11 @@ load_settings() {
 config_load ntpclient
 config_foreach load_settings ntpclient
 
-DEF_ROUTE=`route -n | grep '^0.0.0.0'`
 NTP_RUNNING=`ps  | grep $NTPC | grep -v grep`
 
 case "${ACTION:-ifup}" in
        ifup)
-               [ -n "$DEF_ROUTE" -a -z "$NTP_RUNNING" ] && start_ntpclient 
+               [ -z "$NTP_RUNNING" ] && start_ntpclient 
        ;;
        ifdown)
                [ -n "$NTP_RUNNING" ] && stop_ntpclient