From d8606a85af17642748018e59447b23a79663ad5d Mon Sep 17 00:00:00 2001 From: Erik Troan Date: Sat, 11 Oct 1997 20:31:38 +0000 Subject: fixed rc.sysinit for hwclock --- rc.d/rc.sysinit | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'rc.d/rc.sysinit') diff --git a/rc.d/rc.sysinit b/rc.d/rc.sysinit index e4002c4b..90dd043c 100755 --- a/rc.d/rc.sysinit +++ b/rc.d/rc.sysinit @@ -165,7 +165,14 @@ if [ -f /etc/sysconfig/clock ]; then fi fi -CLOCKFLAGS="-a" +if [ -x /sbin/hwclock ]; then + CLOCKFLAGS="--hctosys" + CLOCK=/sbin/hwclock +else + CLOCKFLAGS="-a" + CLOCK=/sbin/clock +fi + if [ $UTC = "true" ]; then CLOCKFLAGS="$CLOCKFLAGS -u"; echo -n " (utc)" @@ -175,7 +182,7 @@ if [ $ARC = "true" ]; then echo -n " (arc)" fi echo -n ": " -clock $CLOCKFLAGS +$CLOCK $CLOCKFLAGS date -- cgit v1.2.1