]> Zhao Yanbai Git Server - minix.git/commitdiff
Update CMOS time at shutdown time.
authorBen Gras <ben@minix3.org>
Fri, 16 Feb 2007 15:52:39 +0000 (15:52 +0000)
committerBen Gras <ben@minix3.org>
Fri, 16 Feb 2007 15:52:39 +0000 (15:52 +0000)
etc/rc

diff --git a/etc/rc b/etc/rc
index 2578ad5a2c47b593ed5bdb92c42d4e93360536d4..ae18ed6de38a5929745fdca0df1da667d1c84c86 100755 (executable)
--- a/etc/rc
+++ b/etc/rc
@@ -160,6 +160,9 @@ Mount $usr /usr failed -- Single user."
     ;;
 down|stop)
     sync
+    # Update CMOS
+    echo -n 'Updating CMOS.. '
+    readclock -w && echo Done || echo Failed
     # Tell RS server we're going down.
     service shutdown
     ;;