summaryrefslogtreecommitdiff
path: root/init.d
diff options
context:
space:
mode:
authorWilliam Hubbs <williamh@gentoo.org>2011-01-24 21:37:51 -0600
committerWilliam Hubbs <williamh@gentoo.org>2011-01-24 21:37:51 -0600
commitfa1fefb2bc1be8fe81fedf1bb69d8a6b79b3518c (patch)
tree14f1b7b1a7d5ca5d0c69c86f5192555785106318 /init.d
parent10ce67886d214850feaf60d6945fe2568da6ef84 (diff)
downloadopenrc-fa1fefb2bc1be8fe81fedf1bb69d8a6b79b3518c.tar.gz
openrc-fa1fefb2bc1be8fe81fedf1bb69d8a6b79b3518c.tar.bz2
openrc-fa1fefb2bc1be8fe81fedf1bb69d8a6b79b3518c.tar.xz
add option to disable setting the system clock on boot for linux systems
This commit adds the clock_hctosys option which is used to skip setting the system clock on boot and can be used with a modern linux kernel which has the CONFIG_RTC_HCTOSYS option set to y. I would like to thank Dimitris Mandalidis for the report and for the patch to baselayout-1 on which my changes to openrc are based. X-Gentoo-Bug: 248131 X-Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?id=248131
Diffstat (limited to 'init.d')
-rw-r--r--init.d/hwclock.in1
1 files changed, 1 insertions, 0 deletions
diff --git a/init.d/hwclock.in b/init.d/hwclock.in
index 7ab630c..040d84a 100644
--- a/init.d/hwclock.in
+++ b/init.d/hwclock.in
@@ -64,6 +64,7 @@ _hwclock()
start()
{
+ yesno $clock_hctosys || return 0
local retval=0 errstr=""
setupopts