[oe-commits] Jeremy Lainé : ntp-4.2.4p7: make it possible to call hwclock from ntpdate if-up.d script
git version control
git at git.openembedded.org
Wed Nov 4 12:03:58 UTC 2009
Module: openembedded.git
Branch: shr/merge
Commit: 3cb452d2f533f007e8c1e7544c636968514ac106
URL: http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=3cb452d2f533f007e8c1e7544c636968514ac106
Author: Jeremy Lainé <jeremy.laine at m4x.org>
Date: Tue Nov 3 18:31:14 2009 +0100
ntp-4.2.4p7: make it possible to call hwclock from ntpdate if-up.d script
---
recipes/ntp/ntp-4.2.4p7/ntpdate | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/recipes/ntp/ntp-4.2.4p7/ntpdate b/recipes/ntp/ntp-4.2.4p7/ntpdate
index 5b139ed..784b029 100755
--- a/recipes/ntp/ntp-4.2.4p7/ntpdate
+++ b/recipes/ntp/ntp-4.2.4p7/ntpdate
@@ -35,7 +35,11 @@ if [ -x /usr/bin/lockfile-create ]; then
LOCKTOUCHPID="$!"
fi
-/usr/bin/ntpdate -s $OPTS $NTPSERVERS 2>/dev/null || :
+if /usr/bin/ntpdate -s $OPTS $NTPSERVERS 2>/dev/null; then
+ if [ "$UPDATE_HWCLOCK" = "yes" ]; then
+ hwclock --systohc || :
+ fi
+fi
if [ -x /usr/bin/lockfile-create ] ; then
kill $LOCKTOUCHPID
More information about the Openembedded-commits
mailing list