Changeset 2802


Ignore:
Timestamp:
2006-01-02T12:29:30+01:00 (12 years ago)
Author:
florian
Message:

Corrected ticket #118

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/openwrt/package/ntpclient/files/ntpclient.init

    r2364 r2802  
    44        ifup) 
    55                ps x | grep '[n]tpclient' >&- || { 
    6                         route -n 2>&- | grep '0.0.0.0' >&- && /usr/sbin/ntpclient -c 1 -s -h ${server:-pool.ntp.org} & 
     6                        route -n 2>&- | awk '$1 == "0.0.0.0"' >&- && /usr/sbin/ntpclient -c 1 -s -h ${server:-pool.ntp.org} & 
    77                } 
    88                ;; 
    99        ifdown) 
    10                 route -n 2>&- | grep '0.0.0.0' >&- || killall ntpclient 2>&- >&- ;; 
     10                route -n 2>&- | awk '$1 == "0.0.0.0"' >&- || killall ntpclient 2>&- >&- ;; 
    1111esac 
Note: See TracChangeset for help on using the changeset viewer.