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:
parent
04379b2de9
commit
ebd79394a3
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user