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
This commit is contained in:
William Hubbs 2011-02-07 10:29:38 -06:00
parent 04379b2de9
commit ebd79394a3

View File

@ -64,7 +64,6 @@ _hwclock()
start() start()
{ {
yesno $clock_hctosys || return 0
local retval=0 errstr="" local retval=0 errstr=""
setupopts setupopts
@ -95,7 +94,11 @@ start()
"$utc_cmd}" != --utc -o \ "$utc_cmd}" != --utc -o \
-n "$clock_args" ]; -n "$clock_args" ];
then 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 + $?)) retval=$(($retval + $?))
fi fi