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.
This commit is contained in:
William Hubbs 2012-02-17 15:02:10 -06:00
parent a21a2c3e32
commit 04afaa3c03
2 changed files with 4 additions and 4 deletions

View File

@ -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.

View File

@ -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