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:
parent
a21a2c3e32
commit
04afaa3c03
@ -9,9 +9,9 @@ clock="UTC"
|
|||||||
# running a modern kernel with CONFIG_RTC_HCTOSYS set to y.
|
# running a modern kernel with CONFIG_RTC_HCTOSYS set to y.
|
||||||
#clock_hctosys="YES"
|
#clock_hctosys="YES"
|
||||||
|
|
||||||
# If you want to set the hardware clock to the current system time
|
# If you do not want to set the hardware clock to the current system
|
||||||
# (software clock) during shutdown, set this to yes.
|
# time (software clock) during shutdown, set this to no.
|
||||||
#clock_systohc="NO"
|
#clock_systohc="YES"
|
||||||
|
|
||||||
# If you wish to pass any other arguments to hwclock during bootup,
|
# 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.
|
# you may do so here. Alpha users may wish to use --arc or --srm here.
|
||||||
|
@ -111,7 +111,7 @@ stop()
|
|||||||
{
|
{
|
||||||
# Don't tweak the hardware clock on LiveCD halt.
|
# Don't tweak the hardware clock on LiveCD halt.
|
||||||
[ -n "$CDBOOT" ] && return 0
|
[ -n "$CDBOOT" ] && return 0
|
||||||
yesno ${clock_systohc:-NO} || return 0
|
yesno ${clock_systohc:-YES} || return 0
|
||||||
|
|
||||||
local retval=0 errstr=""
|
local retval=0 errstr=""
|
||||||
setupopts
|
setupopts
|
||||||
|
Loading…
Reference in New Issue
Block a user