aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xrc.sysinit4
1 files changed, 3 insertions, 1 deletions
diff --git a/rc.sysinit b/rc.sysinit
index 88c72a0..b38d350 100755
--- a/rc.sysinit
+++ b/rc.sysinit
@@ -64,7 +64,9 @@ if [[ $HWCLOCK_PARAMS ]]; then
# is used. If HARDWARECLOCK is not set in rc.conf, the value in
# /var/lib/hwclock/adjfile is used (in this case /var can not be a separate
# partition).
- TZ=$TIMEZONE hwclock $HWCLOCK_PARAMS && stat_done || stat_fail
+ [[ $TIMEZONE ]] && export TZ=$TIMEZONE
+ hwclock $HWCLOCK_PARAMS && stat_done || stat_fail
+ unset TZ
fi
# Start/trigger UDev, load MODULES and settle UDev