aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--init.d/hwclock.in17
1 files changed, 6 insertions, 11 deletions
diff --git a/init.d/hwclock.in b/init.d/hwclock.in
index 823a5ab2..4b0da02c 100644
--- a/init.d/hwclock.in
+++ b/init.d/hwclock.in
@@ -83,22 +83,17 @@ start()
fi
fi
+ # Always set the kernel's time zone.
+ _hwclock --systz $utc_cmd $clock_args
+ : $(( retval += $? ))
+
if [ -e /etc/adjtime ] && yesno $clock_adjfile; then
_hwclock --adjust $utc_cmd
: $(( retval += $? ))
fi
- # If setting UTC, don't bother to run hwclock when first booting
- # as that's the default
- if [ "$PREVLEVEL" != N -o \
- "$utc_cmd" != --utc -o \
- -n "$clock_args" ];
- then
- if yesno ${clock_hctosys:-YES}; then
- _hwclock --hctosys $utc_cmd $clock_args
- else
- _hwclock --systz $utc_cmd $clock_args
- fi
+ if yesno ${clock_hctosys:-YES}; then
+ _hwclock --hctosys $utc_cmd $clock_args
: $(( retval += $? ))
fi