aboutsummaryrefslogtreecommitdiff
path: root/rc.shutdown
diff options
context:
space:
mode:
Diffstat (limited to 'rc.shutdown')
-rwxr-xr-xrc.shutdown4
1 files changed, 4 insertions, 0 deletions
diff --git a/rc.shutdown b/rc.shutdown
index 8befcf8..e242b97 100755
--- a/rc.shutdown
+++ b/rc.shutdown
@@ -55,6 +55,10 @@ stat_busy "Saving Random Seed"
stat_done
stat_busy "Saving System Clock"
+if [ "$TIMEZONE" != "" -a -e /usr/share/zoneinfo/$TIMEZONE ]; then
+ /bin/rm -f /etc/localtime
+ /bin/cp /usr/share/zoneinfo/$TIMEZONE /etc/localtime
+fi
if [ "$HARDWARECLOCK" = "UTC" ]; then
/sbin/hwclock --directisa --utc --systohc
else