summaryrefslogtreecommitdiff
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
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.
-rw-r--r--conf.d/hwclock6
-rw-r--r--init.d/hwclock.in2
2 files changed, 4 insertions, 4 deletions
diff --git a/conf.d/hwclock b/conf.d/hwclock
index 448c2d9..230d81d 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 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