diff options
author | Dave Reisner <dreisner@archlinux.org> | 2011-09-04 15:41:53 -0400 |
---|---|---|
committer | Tom Gundersen <teg@jklm.no> | 2011-09-25 00:55:35 +0200 |
commit | ae92346c03bc60578bfb5bddef9dbbf1b4d71460 (patch) | |
tree | 1964ba68087810d05f4f8e42c597570a91d15d9d /rc.sysinit | |
parent | 872444291d3ab4cbeecd4a24216531564986a01c (diff) | |
download | initscripts-ae92346c03bc60578bfb5bddef9dbbf1b4d71460.tar.xz |
timezone: create /etc/localtime as a symlink
Abstract out timezone setting into its own function, passing
Country/Area as a parameter. Do some menial checking to make sure:
- the zonefile actually exists, erroring when it doesn't
- /etc/localtime is a symlink to the correct zoneinfo file, relinking
when it isn't.
Signed-off-by: Dave Reisner <dreisner@archlinux.org>
Diffstat (limited to 'rc.sysinit')
-rwxr-xr-x | rc.sysinit | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -221,9 +221,7 @@ run_hook sysinit_postmount status "Activating Swap" swapon -a -[[ $TIMEZONE ]] && - status "Configuring Time Zone" \ - cp --remove-destination "/usr/share/zoneinfo/$TIMEZONE" /etc/localtime +[[ $TIMEZONE ]] && status "Configuring Time Zone" set_timezone "$TIMEZONE" RANDOM_SEED=/var/lib/misc/random-seed [[ -f $RANDOM_SEED ]] && |