aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKarsten Hopp <karsten@redhat.com>2003-03-26 15:35:06 +0000
committerKarsten Hopp <karsten@redhat.com>2003-03-26 15:35:06 +0000
commit35d6a4bfc5a1e38a04f89bed0d0b2f9c2cfe1dbb (patch)
treebcd317f42024f0e235608f4624eb037a93ab07fc
parent7c956d85f0c66d9dae315706dcc626b876d2dd5c (diff)
downloadinitscripts-35d6a4bfc5a1e38a04f89bed0d0b2f9c2cfe1dbb.tar
initscripts-35d6a4bfc5a1e38a04f89bed0d0b2f9c2cfe1dbb.tar.gz
initscripts-35d6a4bfc5a1e38a04f89bed0d0b2f9c2cfe1dbb.tar.bz2
initscripts-35d6a4bfc5a1e38a04f89bed0d0b2f9c2cfe1dbb.tar.xz
initscripts-35d6a4bfc5a1e38a04f89bed0d0b2f9c2cfe1dbb.zip
There are no /dev/ttyX devices and no mingetty on mainframe.
This code tried to create new files in /dev/ while / was mounted ro.
-rwxr-xr-xrc.d/rc.sysinit18
1 files changed, 10 insertions, 8 deletions
diff --git a/rc.d/rc.sysinit b/rc.d/rc.sysinit
index e7a5dd51..8f89960f 100755
--- a/rc.d/rc.sysinit
+++ b/rc.d/rc.sysinit
@@ -34,14 +34,16 @@ if [ "$BOOTUP" = "graphical" ]; then
fi
fi
-last=0
-for i in `LC_ALL=C grep '^[0-9]*.*respawn:/sbin/mingetty' /etc/inittab | sed 's/^.* tty\([0-9][0-9]*\).*/\1/g'`; do
- > /dev/tty$i
- last=$i
-done
-if [ $last -gt 0 ]; then
- > /dev/tty$((last+1))
- > /dev/tty$((last+2))
+if [ "$HOSTTYPE" != "s390" -a "$HOSTTYPE" != "s390x" ]; then
+ last=0
+ for i in `LC_ALL=C grep '^[0-9]*.*respawn:/sbin/mingetty' /etc/inittab | sed 's/^.* tty\([0-9][0-9]*\).*/\1/g'`; do
+ > /dev/tty$i
+ last=$i
+ done
+ if [ $last -gt 0 ]; then
+ > /dev/tty$((last+1))
+ > /dev/tty$((last+2))
+ fi
fi
if [ "`/sbin/consoletype`" = "vt" -a -x /sbin/setsysfont ]; then