diff options
author | Erik Troan <ewt@redhat.com> | 1997-10-11 20:31:38 +0000 |
---|---|---|
committer | Erik Troan <ewt@redhat.com> | 1997-10-11 20:31:38 +0000 |
commit | d8606a85af17642748018e59447b23a79663ad5d (patch) | |
tree | 9c60094fc3ffa54da2d026d3411544e08e119d46 /rc.d/rc.sysinit | |
parent | b5f29555d697436db82a303a33712d2cfcc099ab (diff) | |
download | initscripts-d8606a85af17642748018e59447b23a79663ad5d.tar initscripts-d8606a85af17642748018e59447b23a79663ad5d.tar.gz initscripts-d8606a85af17642748018e59447b23a79663ad5d.tar.bz2 initscripts-d8606a85af17642748018e59447b23a79663ad5d.tar.xz initscripts-d8606a85af17642748018e59447b23a79663ad5d.zip |
fixed rc.sysinit for hwclock
Diffstat (limited to 'rc.d/rc.sysinit')
-rwxr-xr-x | rc.d/rc.sysinit | 11 |
1 files changed, 9 insertions, 2 deletions
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 |