From: Vasilis Tsiligiannis Date: Thu, 4 Jun 2009 14:59:42 +0000 (+0000) Subject: [packages] ntpclient: Allow ntpclient to run without default route installed X-Git-Url: http://git.openwrt.org/?p=openwrt%2Fsvn-archive%2Farchive.git;a=commitdiff_plain;h=aba1bd83958fd405e40722872898cb2e6c12b55b [packages] ntpclient: Allow ntpclient to run without default route installed This allows the use of ntp server inside a LAN where there isn't any internet access SVN-Revision: 16337 --- diff --git a/net/ntpclient/files/ntpclient.hotplug b/net/ntpclient/files/ntpclient.hotplug index 634529cae0..29f17c1775 100644 --- a/net/ntpclient/files/ntpclient.hotplug +++ b/net/ntpclient/files/ntpclient.hotplug @@ -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