aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--conf.d/hwclock8
-rw-r--r--init.d/hwclock.in1
2 files changed, 9 insertions, 0 deletions
diff --git a/conf.d/hwclock b/conf.d/hwclock
index 5321ba14..4e66ff95 100644
--- a/conf.d/hwclock
+++ b/conf.d/hwclock
@@ -9,6 +9,14 @@ clock="UTC"
# You normally don't need to do this if you run a ntp daemon.
clock_systohc="NO"
+# If you want to set the system time to the current hardware clock
+# during bootup, then say "YES" here. You do not need this if you are
+# running a modern kernel with CONFIG_RTC_HCTOSYS set to y.
+# Also, be aware that if you set this to "NO", the system time will
+# never be saved to the hardware clock unless you set
+# clock_systohc="YES" above.
+clock_hctosys="YES"
+
# If you wish to pass any other arguments to hwclock during bootup,
# you may do so here. Alpha users may wish to use --arc or --srm here.
clock_args=""
diff --git a/init.d/hwclock.in b/init.d/hwclock.in
index 7ab630cc..040d84a0 100644
--- a/init.d/hwclock.in
+++ b/init.d/hwclock.in
@@ -64,6 +64,7 @@ _hwclock()
start()
{
+ yesno $clock_hctosys || return 0
local retval=0 errstr=""
setupopts