diff options
author | Cecil <knoppmyth@gmail.com> | 2011-07-06 08:08:54 (GMT) |
---|---|---|
committer | Cecil <knoppmyth@gmail.com> | 2011-07-06 08:08:54 (GMT) |
commit | bf21b389e5f4e90aa8d16f953fafc04d53b729fe (patch) | |
tree | 6bb8154fffb0a9494e5327f0374bcb7f0fb9e7f2 /abs/core/ntp/ntpdate | |
parent | 965b69db0623e1b510715bfa8ba081d857437e21 (diff) | |
download | linhes_pkgbuild-bf21b389e5f4e90aa8d16f953fafc04d53b729fe.zip linhes_pkgbuild-bf21b389e5f4e90aa8d16f953fafc04d53b729fe.tar.gz linhes_pkgbuild-bf21b389e5f4e90aa8d16f953fafc04d53b729fe.tar.bz2 |
ntp:bumped to latest.
Diffstat (limited to 'abs/core/ntp/ntpdate')
-rwxr-xr-x | abs/core/ntp/ntpdate | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/abs/core/ntp/ntpdate b/abs/core/ntp/ntpdate index 643ae19..99508f4 100755 --- a/abs/core/ntp/ntpdate +++ b/abs/core/ntp/ntpdate @@ -7,9 +7,10 @@ case "$1" in start) stat_busy "Starting NTP Client" - /usr/bin/ntpdate $NTP_CLIENT_OPTION -t $NTPCLIENT_TIMEOUT $NTP_CLIENT_SERVER > /dev/null 2>&1 - if [ $? -gt 0 ]; then + /usr/bin/ntpd -q $NTP_CLIENT_OPTION &> /dev/null + if [ $? -gt 0 ]; then stat_fail + exit 1 else add_daemon ntpdate stat_done @@ -22,9 +23,9 @@ case "$1" in ;; restart) $0 stop - sleep 1 $0 start ;; *) echo "usage: $0 {start|stop|restart}" esac + |