summaryrefslogtreecommitdiffstats
path: root/meta-networking/recipes-support/ntp/files/ntpdate
diff options
context:
space:
mode:
Diffstat (limited to 'meta-networking/recipes-support/ntp/files/ntpdate')
-rwxr-xr-xmeta-networking/recipes-support/ntp/files/ntpdate6
1 files changed, 3 insertions, 3 deletions
diff --git a/meta-networking/recipes-support/ntp/files/ntpdate b/meta-networking/recipes-support/ntp/files/ntpdate
index ab0551c5a..17b64d133 100755
--- a/meta-networking/recipes-support/ntp/files/ntpdate
+++ b/meta-networking/recipes-support/ntp/files/ntpdate
@@ -1,8 +1,8 @@
1#!/bin/sh 1#!/bin/sh
2 2
3PATH=/sbin:/bin:/usr/bin 3PATH=/sbin:/bin:/usr/bin:/usr/sbin
4 4
5test -x /usr/bin/ntpdate || exit 0 5test -x /usr/sbin/ntpdate || exit 0
6 6
7if test -f /etc/default/ntpdate ; then 7if test -f /etc/default/ntpdate ; then
8. /etc/default/ntpdate 8. /etc/default/ntpdate
@@ -40,7 +40,7 @@ if [ -x /usr/bin/lockfile-create ]; then
40 LOCKTOUCHPID="$!" 40 LOCKTOUCHPID="$!"
41fi 41fi
42 42
43if /usr/bin/ntpdate -s $OPTS $NTPSERVERS 2>/dev/null; then 43if /usr/sbin/ntpdate -s $OPTS $NTPSERVERS 2>/dev/null; then
44 if [ "$UPDATE_HWCLOCK" = "yes" ]; then 44 if [ "$UPDATE_HWCLOCK" = "yes" ]; then
45 hwclock --systohc || : 45 hwclock --systohc || :
46 fi 46 fi