diff options
Diffstat (limited to 'meta-networking/recipes-support/ntp/files/ntpdate')
-rwxr-xr-x | meta-networking/recipes-support/ntp/files/ntpdate | 6 |
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 | ||
3 | PATH=/sbin:/bin:/usr/bin | 3 | PATH=/sbin:/bin:/usr/bin:/usr/sbin |
4 | 4 | ||
5 | test -x /usr/bin/ntpdate || exit 0 | 5 | test -x /usr/sbin/ntpdate || exit 0 |
6 | 6 | ||
7 | if test -f /etc/default/ntpdate ; then | 7 | if 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="$!" |
41 | fi | 41 | fi |
42 | 42 | ||
43 | if /usr/bin/ntpdate -s $OPTS $NTPSERVERS 2>/dev/null; then | 43 | if /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 |