From ebd79394a31d40c72d7f96a1cb832d1130777537 Mon Sep 17 00:00:00 2001 From: William Hubbs Date: Mon, 7 Feb 2011 10:29:38 -0600 Subject: set timezone if RC_HCTOSYS is not set We need to set the timezone for the system clock even when we allow the kernel to set the time. X-Gentoo-Bug: 248131 X-Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?id=248131 --- init.d/hwclock.in | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'init.d/hwclock.in') diff --git a/init.d/hwclock.in b/init.d/hwclock.in index 040d84a0..f673d35f 100644 --- a/init.d/hwclock.in +++ b/init.d/hwclock.in @@ -64,7 +64,6 @@ _hwclock() start() { - yesno $clock_hctosys || return 0 local retval=0 errstr="" setupopts @@ -95,7 +94,11 @@ start() "$utc_cmd}" != --utc -o \ -n "$clock_args" ]; then - _hwclock --hctosys $utc_cmd $clock_args + if yesno $clock_hctosys; then + _hwclock --hctosys $utc_cmd $clock_args + else + _hwclock --systz $utc_cmd $clock_args + fi retval=$(($retval + $?)) fi -- cgit v1.2.3