aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d/rc.sysinit
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>1999-10-27 19:00:27 +0000
committerBill Nottingham <notting@redhat.com>1999-10-27 19:00:27 +0000
commit5bf7cd221bd5ebadedf5a55d552489f8da6f4278 (patch)
tree10f0c7fe4249d432044352f0b33389d56962e56e /rc.d/rc.sysinit
parenta3777b9989230dbf525df0e32659bef22813f469 (diff)
downloadinitscripts-5bf7cd221bd5ebadedf5a55d552489f8da6f4278.tar
initscripts-5bf7cd221bd5ebadedf5a55d552489f8da6f4278.tar.gz
initscripts-5bf7cd221bd5ebadedf5a55d552489f8da6f4278.tar.bz2
initscripts-5bf7cd221bd5ebadedf5a55d552489f8da6f4278.tar.xz
initscripts-5bf7cd221bd5ebadedf5a55d552489f8da6f4278.zip
hwclock is now on alpha, too.
Diffstat (limited to 'rc.d/rc.sysinit')
-rwxr-xr-xrc.d/rc.sysinit26
1 files changed, 6 insertions, 20 deletions
diff --git a/rc.d/rc.sysinit b/rc.d/rc.sysinit
index 2726d2a8..c528375b 100755
--- a/rc.d/rc.sysinit
+++ b/rc.d/rc.sysinit
@@ -74,18 +74,10 @@ fi
if grep "system serial" /proc/cpuinfo | grep -q MILO ; then
ARC=true
-else
- SRM=true
fi
CLOCKDEF=""
-if [ -x /sbin/hwclock ]; then
- CLOCKFLAGS="--hctosys"
- CLOCK=/sbin/hwclock
-else
- CLOCKFLAGS="-a"
- CLOCK=/sbin/clock
-fi
+CLOCKFLAGS="--hctosys"
case "$UTC" in
yes|true)
@@ -94,26 +86,20 @@ case "$UTC" in
;;
esac
-if [ "$CLOCK" = "/sbin/clock" ]; then
- case "$ARC" in
+case "$ARC" in
yes|true)
CLOCKFLAGS="$CLOCKFLAGS -A";
CLOCKDEF="$CLOCKDEF (arc)";
;;
- esac
- case "$SRM" in
+esac
+case "$SRM" in
yes|true)
CLOCKFLAGS="$CLOCKFLAGS -S";
CLOCKDEF="$CLOCKDEF (srm)";
;;
- esac
- if grep -q "Jensen" /proc/cpuinfo >/dev/null 2>&1 ; then
- CLOCKFLAGS="$CLOCKFLAGS -J";
- CLOCKDEF="$CLOCKDEF (jensen)";
- fi
-fi
+esac
-$CLOCK $CLOCKFLAGS
+/sbin/hwclock $CLOCKFLAGS
action "Setting clock $CLOCKDEF: `date`" date