diff options
author | Dave Reisner <dreisner@archlinux.org> | 2012-02-24 15:20:28 -0500 |
---|---|---|
committer | Dave Reisner <dreisner@archlinux.org> | 2012-03-05 12:33:10 -0500 |
commit | ecd99c311b3e5a7bbc7bf19029acad2c2a65178e (patch) | |
tree | 3e7ab77427b71cabb243243b2054575d566bf6c3 | |
parent | 7f42e7e621369aa6eaab446dc4c1bc3f04c4b266 (diff) |
rc.sysinit: avoid exporting empty TIMEZONE as TZ
fixes FS#28458
Signed-off-by: Dave Reisner <dreisner@archlinux.org>
-rwxr-xr-x | rc.sysinit | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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 |