summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAaron Griffin <aaron@archlinux.org>2006-11-16 01:01:16 +0000
committerAaron Griffin <aaron@archlinux.org>2006-11-16 01:01:16 +0000
commit6b671f7901477d36fca5f8901731e4c0d5e7948f (patch)
tree8f31ac94817e631f8174b8c3d77ad92eef222376
parentc632bec83a37945e5bb4e7cedf4f4d96f0a955ec (diff)
upgpkg: initscripts 0.7.3-1
Bugfix #5529: Set timezone before hwclock calls
-rwxr-xr-xrc.sysinit6
1 files 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