SVN: rc-scripts/trunk/rc.d/rc.shutdown
glen
glen at pld-linux.org
Thu May 30 22:30:12 CEST 2013
Author: glen
Date: Thu May 30 22:30:12 2013
New Revision: 12676
Modified:
rc-scripts/trunk/rc.d/rc.shutdown
Log:
syncing hardware clock to system time on shutdown
Modified: rc-scripts/trunk/rc.d/rc.shutdown
==============================================================================
--- rc-scripts/trunk/rc.d/rc.shutdown (original)
+++ rc-scripts/trunk/rc.d/rc.shutdown Thu May 30 22:30:12 2013
@@ -37,6 +37,10 @@
killall -q -QUIT blogd
fi
+if [ -e /dev/rtc -o -e /dev/rtc0 ]; then
+ run_cmd "$(nls 'Syncing hardware clock to system time')" hwclock --systohc
+fi
+
# check for other processes.
# there could be none if all services were terminated properly
# pgrep -g 0 requires procps >= 3.2.6-1.1
More information about the pld-cvs-commit
mailing list