Changeset 16337


Ignore:
Timestamp:
2009-06-04T16:59:42+02:00 (9 years ago)
Author:
acinonyx
Message:

[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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • packages/net/ntpclient/files/ntpclient.hotplug

    r15247 r16337  
    5353config_foreach load_settings ntpclient 
    5454 
    55 DEF_ROUTE=`route -n | grep '^0.0.0.0'` 
    5655NTP_RUNNING=`ps  | grep $NTPC | grep -v grep` 
    5756 
    5857case "${ACTION:-ifup}" in 
    5958        ifup) 
    60                 [ -n "$DEF_ROUTE" -a -z "$NTP_RUNNING" ] && start_ntpclient  
     59                [ -z "$NTP_RUNNING" ] && start_ntpclient  
    6160        ;; 
    6261        ifdown) 
Note: See TracChangeset for help on using the changeset viewer.