--- rc.sysinit.orig 2006-12-11 14:26:24.000000000 +0200 +++ rc.sysinit 2006-12-18 12:19:10.000000000 +0200 @@ -128,6 +128,12 @@ status "Mounting Root Read-only" /bin/mount -n -o remount,ro / +if [ "$HARDWARECLOCK" = "UTC" ]; then + /sbin/hwclock --directisa --utc --hctosys --noadjfile +else + /sbin/hwclock --directisa --localtime --hctosys --noadjfile +fi + FORCEFSCK= [ -f /forcefsck ] && FORCEFSCK="-- -f" NETFS="nonfs,nosmbfs,nocifs,nocodafs,noncpfs,nosysfs,nousbfs,noshfs,nofuse" @@ -179,17 +185,14 @@ status "Activating Swap" /sbin/swapon -a stat_busy "Configuring System Clock" -if [ "$TIMEZONE" != "" ]; then - /bin/ln -sf /usr/share/zoneinfo/$TIMEZONE /etc/localtime +if [ ! -f /var/lib/hwclock/adjtime ]; then + echo "0.0 0 0.0" > /var/lib/hwclock/adjtime fi if [ "$HARDWARECLOCK" = "UTC" ]; then /sbin/hwclock --directisa --utc --hctosys else /sbin/hwclock --directisa --localtime --hctosys fi -if [ ! -f /var/lib/hwclock/adjtime ]; then - echo "0.0 0 0.0" > /var/lib/hwclock/adjtime -fi stat_done if [ -f /var/run/random-seed ]; then --- rc.shutdown.orig 2006-12-09 15:52:20.000000000 +0200 +++ rc.shutdown 2006-12-18 12:17:21.000000000 +0200 @@ -55,6 +55,10 @@ stat_done stat_busy "Saving System Clock" +if [ "$TIMEZONE" != "" ]; then + rm -f /etc/localtime + cp /usr/share/zoneinfo/$TIMEZONE /etc/localtime +fi if [ "$HARDWARECLOCK" = "UTC" ]; then /sbin/hwclock --directisa --utc --systohc else