[arch-dev-public] [PATCH 3/3] rc.sysinit: remove unnecessary adjtime creation

Dan McGee dan at archlinux.org
Sun Dec 13 22:26:46 EST 2009


This is an Arch initscripts original (commit 98c76a4), but is not actually
necessary for hwclock to operate correctly, so kill it. The file is created
automatically when `hwclock --systohc` is invoked.

Signed-off-by: Dan McGee <dan at archlinux.org>
---
 rc.sysinit |    3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)

diff --git a/rc.sysinit b/rc.sysinit
index c09dad2..4e079ad 100755
--- a/rc.sysinit
+++ b/rc.sysinit
@@ -279,9 +279,6 @@ stat_done
 status "Activating Swap" /sbin/swapon -a
 
 stat_busy "Configuring System Clock"
-if [ ! -f /var/lib/hwclock/adjtime ]; then
-	echo "0.0 0 0.0" > /var/lib/hwclock/adjtime
-fi
 if [ "$TIMEZONE" != "" -a -e "/usr/share/zoneinfo/$TIMEZONE" ]; then
 	/bin/rm -f /etc/localtime
 	/bin/cp "/usr/share/zoneinfo/$TIMEZONE" /etc/localtime
-- 
1.6.5.5



More information about the arch-dev-public mailing list