diff options
author | Tom Gundersen <teg@jklm.no> | 2011-09-24 22:19:29 +0200 |
---|---|---|
committer | Tom Gundersen <teg@jklm.no> | 2011-09-25 00:55:35 +0200 |
commit | 5f7f87fa3259310454793521ac181028c31c1014 (patch) | |
tree | 6cc76219146f5719af6c2bca0cb5fc8b2b201a03 | |
parent | 34c8a9f600d17010ed6b77ad685ed83a76322d3d (diff) | |
download | initscripts-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-x | rc.shutdown | 4 |
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 |