From f6e68f715e9cb69250d1024d8f301804fcaeeceb Mon Sep 17 00:00:00 2001 From: Mike Gilbert Date: Mon, 21 Jul 2014 21:19:05 -0400 Subject: [PATCH] hwclock: Always call hwclock --systz when the clock is in local time This will trigger the kernel's "clock warp" behavior. Resolves bug 496024. --- init.d/hwclock.in | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/init.d/hwclock.in b/init.d/hwclock.in index 823a5ab..97db3c3 100644 --- a/init.d/hwclock.in +++ b/init.d/hwclock.in @@ -94,12 +94,12 @@ start() "$utc_cmd" != --utc -o \ -n "$clock_args" ]; then + _hwclock --systz $utc_cmd $clock_args + : $(( retval += $? )) if yesno ${clock_hctosys:-YES}; then _hwclock --hctosys $utc_cmd $clock_args - else - _hwclock --systz $utc_cmd $clock_args + : $(( retval += $? )) fi - : $(( retval += $? )) fi eend $retval "Failed to set the system clock" -- 2.0.2