summaryrefslogtreecommitdiff
path: root/init.d
diff options
context:
space:
mode:
authorWilliam Hubbs <williamh@gentoo.org>2012-02-17 15:02:10 -0600
committerWilliam Hubbs <williamh@gentoo.org>2012-02-18 12:49:19 -0600
commit04afaa3c03ac7400c06a6b5f17cee99cdd4bfaeb (patch)
tree9de88e4edc3ff177bbe3d4853ccc0b92d908be33 /init.d
parenta21a2c3e32656cf2a153b3cd9f19eb7fae1f3c7a (diff)
downloadopenrc-04afaa3c03ac7400c06a6b5f17cee99cdd4bfaeb.tar.gz
openrc-04afaa3c03ac7400c06a6b5f17cee99cdd4bfaeb.tar.bz2
openrc-04afaa3c03ac7400c06a6b5f17cee99cdd4bfaeb.tar.xz
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.
Diffstat (limited to 'init.d')
-rw-r--r--init.d/hwclock.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/init.d/hwclock.in b/init.d/hwclock.in
index 7f2323a..eb44f62 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