base-files: sysfixtime: Keep RTC time in UTC timezone
[openwrt/staging/wigyori.git] / package / base-files / files / etc / init.d / sysfixtime
index 81d1c52442c06422be1e437395c259aa359611b9..aab5b153d0714fdead6fa70b3f6347dacbbead74 100755 (executable)
@@ -16,11 +16,11 @@ boot() {
 }
 
 start() {
-       [ -e "$RTC_DEV" ] && [ -e "$HWCLOCK" ] && $HWCLOCK -s -f $RTC_DEV
+       [ -e "$RTC_DEV" ] && [ -e "$HWCLOCK" ] && $HWCLOCK -s -u -f $RTC_DEV
 }
 
 stop() {
-       [ -e "$RTC_DEV" ] && [ -e "$HWCLOCK" ] && $HWCLOCK -w -f $RTC_DEV && \
+       [ -e "$RTC_DEV" ] && [ -e "$HWCLOCK" ] && $HWCLOCK -w -u -f $RTC_DEV && \
                logger -t sysfixtime "saved '$(date)' to $RTC_DEV"
 }