From 6b671f7901477d36fca5f8901731e4c0d5e7948f Mon Sep 17 00:00:00 2001 From: Aaron Griffin Date: Thu, 16 Nov 2006 01:01:16 +0000 Subject: upgpkg: initscripts 0.7.3-1 Bugfix #5529: Set timezone before hwclock calls --- rc.sysinit | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rc.sysinit b/rc.sysinit index 164711d..369772b 100755 --- a/rc.sysinit +++ b/rc.sysinit @@ -179,6 +179,9 @@ stat_done status "Activating Swap" /sbin/swapon -a stat_busy "Configuring System Clock" +if [ "$TIMEZONE" != "" ]; then + /bin/ln -sf /usr/share/zoneinfo/$TIMEZONE /etc/localtime +fi if [ "$HARDWARECLOCK" = "UTC" ]; then /sbin/hwclock --directisa --utc --hctosys else @@ -187,9 +190,6 @@ fi if [ ! -f /var/lib/hwclock/adjtime ]; then echo "0.0 0 0.0" > /var/lib/hwclock/adjtime fi -if [ "$TIMEZONE" != "" ]; then - /bin/ln -sf /usr/share/zoneinfo/$TIMEZONE /etc/localtime -fi stat_done if [ -f /var/run/random-seed ]; then -- cgit v1.2.3