aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>1999-09-20 21:54:04 +0000
committerBill Nottingham <notting@redhat.com>1999-09-20 21:54:04 +0000
commit1763421b317ada5aee07e4e562a5c9665f605d44 (patch)
treeb57f4d67e7560948141e7adf6ceef47c55df5e66 /rc.d
parent6d71a751ac7d625b4fcadb45beca9cae92368ce6 (diff)
downloadinitscripts-1763421b317ada5aee07e4e562a5c9665f605d44.tar
initscripts-1763421b317ada5aee07e4e562a5c9665f605d44.tar.gz
initscripts-1763421b317ada5aee07e4e562a5c9665f605d44.tar.bz2
initscripts-1763421b317ada5aee07e4e562a5c9665f605d44.tar.xz
initscripts-1763421b317ada5aee07e4e562a5c9665f605d44.zip
look in /proc/cpuinfo for arc console
Diffstat (limited to 'rc.d')
-rwxr-xr-xrc.d/rc.sysinit26
1 files changed, 17 insertions, 9 deletions
diff --git a/rc.d/rc.sysinit b/rc.d/rc.sysinit
index 02e92506..b7972492 100755
--- a/rc.d/rc.sysinit
+++ b/rc.d/rc.sysinit
@@ -40,10 +40,21 @@ fi
# Fix console loglevel
/sbin/loglevel $LOGLEVEL
+# Mount /proc (done here so volume labels can work with fsck)
+
+action "Mounting proc filesystem" mount -n -t proc /proc /proc
+
+# Turn off sysrq
+if [ "$MAGIC_SYSRQ" = "no" ]; then
+ echo "0" > /proc/sys/kernel/sysrq
+fi
+
# Set the system clock.
ARC=0
SRM=0
UTC=0
+
+
if [ -f /etc/sysconfig/clock ]; then
. /etc/sysconfig/clock
@@ -55,6 +66,12 @@ if [ -f /etc/sysconfig/clock ]; then
fi
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"
@@ -129,15 +146,6 @@ else
domainname ""
fi
-# Mount /proc (done here so volume labels can work with fsck)
-
-action "Mounting proc filesystem" mount -n -t proc /proc /proc
-
-# Turn off sysrq
-if [ "$MAGIC_SYSRQ" = "no" ]; then
- echo "0" > /proc/sys/kernel/sysrq
-fi
-
if [ -f /fsckoptions ]; then
fsckoptions=`cat /fsckoptions`
else