diff options
author | William Hubbs <williamh@gentoo.org> | 2012-02-17 15:02:10 -0600 |
---|---|---|
committer | William Hubbs <williamh@gentoo.org> | 2012-02-18 12:49:19 -0600 |
commit | 04afaa3c03ac7400c06a6b5f17cee99cdd4bfaeb (patch) | |
tree | 9de88e4edc3ff177bbe3d4853ccc0b92d908be33 | |
parent | a21a2c3e32656cf2a153b3cd9f19eb7fae1f3c7a (diff) |
hwclock: set the hardware clock on shutdown
Previously, the default on linux systems was to not set the hardware
clock to match the system clock during shutdown.
This changes that default to be consistent with *bsd and swclock.
-rw-r--r-- | conf.d/hwclock | 6 | ||||
-rw-r--r-- | init.d/hwclock.in | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/conf.d/hwclock b/conf.d/hwclock index 448c2d9f..230d81df 100644 --- a/conf.d/hwclock +++ b/conf.d/hwclock @@ -9,9 +9,9 @@ clock="UTC" # running a modern kernel with CONFIG_RTC_HCTOSYS set to y. #clock_hctosys="YES" -# If you want to set the hardware clock to the current system time -# (software clock) during shutdown, set this to yes. -#clock_systohc="NO" +# If you do not want to set the hardware clock to the current system +# time (software clock) during shutdown, set this to no. +#clock_systohc="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. diff --git a/init.d/hwclock.in b/init.d/hwclock.in index 7f2323ae..eb44f62a 100644 --- a/init.d/hwclock.in +++ b/init.d/hwclock.in @@ -111,7 +111,7 @@ stop() { # Don't tweak the hardware clock on LiveCD halt. [ -n "$CDBOOT" ] && return 0 - yesno ${clock_systohc:-NO} || return 0 + yesno ${clock_systohc:-YES} || return 0 local retval=0 errstr="" setupopts |