]> git.pld-linux.org Git - projects/rc-scripts.git/commitdiff
syncing hardware clock to system time on shutdown
authorElan Ruusamäe <glen@pld-linux.org>
Thu, 30 May 2013 20:30:12 +0000 (20:30 +0000)
committerElan Ruusamäe <glen@pld-linux.org>
Thu, 30 May 2013 20:30:12 +0000 (20:30 +0000)
svn-id: @12676

rc.d/rc.shutdown

index 8ed93fa8477352800b26f56ac1f6a008271a98bd..31baf75d8f24cec2fb85f0819f095c241b50fdca 100755 (executable)
@@ -37,6 +37,10 @@ if [ -x /sbin/blogd ]; then
        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
This page took 0.200804 seconds and 4 git commands to generate.