From b83af04c15fa7e91faa3ecd2297937077c14a620 Mon Sep 17 00:00:00 2001 From: Michael Lauer Date: Tue, 14 Aug 2007 18:13:17 +0000 Subject: initscripts: first steps towards working together with RTC TODO: might need more work for systems without a hardware clock --- packages/initscripts/initscripts-1.0/bootmisc.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'packages/initscripts/initscripts-1.0/bootmisc.sh') diff --git a/packages/initscripts/initscripts-1.0/bootmisc.sh b/packages/initscripts/initscripts-1.0/bootmisc.sh index 814dba676c..1c817fab5e 100755 --- a/packages/initscripts/initscripts-1.0/bootmisc.sh +++ b/packages/initscripts/initscripts-1.0/bootmisc.sh @@ -62,10 +62,15 @@ fi /sbin/ldconfig # -# Recover the time, if there is a time file +# Recover the time, if there is a time file (first boot only) +# If not, set system clock from hardware clock # if test -e /etc/timestamp then date -s `cat /etc/timestamp` + mv -f /etc/timestamp /etc/timestamp.done + /etc/init.d/hwclock.sh start +else + /etc/init.d/hwclock.sh stop fi : exit 0 -- cgit v1.2.3