summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2012-02-24 15:20:28 -0500
committerDave Reisner <dreisner@archlinux.org>2012-03-05 12:33:10 -0500
commitecd99c311b3e5a7bbc7bf19029acad2c2a65178e (patch)
tree3e7ab77427b71cabb243243b2054575d566bf6c3
parent7f42e7e621369aa6eaab446dc4c1bc3f04c4b266 (diff)
rc.sysinit: avoid exporting empty TIMEZONE as TZ
fixes FS#28458 Signed-off-by: Dave Reisner <dreisner@archlinux.org>
-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