aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Gundersen <teg@jklm.no>2011-09-24 22:19:29 +0200
committerTom Gundersen <teg@jklm.no>2011-09-25 00:55:35 +0200
commit5f7f87fa3259310454793521ac181028c31c1014 (patch)
tree6cc76219146f5719af6c2bca0cb5fc8b2b201a03
parent34c8a9f600d17010ed6b77ad685ed83a76322d3d (diff)
downloadinitscripts-5f7f87fa3259310454793521ac181028c31c1014.tar.xz
timezone: use function in shutdown like in sysinit
This uses the function introduced in 9b77b7d7b535c3c52c99a95374e1f800466c6414. Signed-off-by: Tom Gundersen <teg@jklm.no>
-rwxr-xr-xrc.shutdown4
1 files changed, 1 insertions, 3 deletions
diff --git a/rc.shutdown b/rc.shutdown
index db8f50b..ad91f76 100755
--- a/rc.shutdown
+++ b/rc.shutdown
@@ -37,9 +37,7 @@ stat_busy "Saving Random Seed"
dd if=/dev/urandom of=$RANDOM_SEED count=1 bs=$POOL_SIZE &>/dev/null
stat_done
-[[ $TIMEZONE ]] &&
- status "Saving Time Zone" \
- cp --remove-destination "/usr/share/zoneinfo/$TIMEZONE" /etc/localtime
+[[ $TIMEZONE ]] && status "Configuring Time Zone" set_timezone "$TIMEZONE"
# Write to wtmp file before unmounting
halt -w