diff options
Diffstat (limited to 'init.d')
-rw-r--r-- | init.d/hwclock.in | 7 |
1 files changed, 5 insertions, 2 deletions
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 |