From 35d6a4bfc5a1e38a04f89bed0d0b2f9c2cfe1dbb Mon Sep 17 00:00:00 2001 From: Karsten Hopp Date: Wed, 26 Mar 2003 15:35:06 +0000 Subject: There are no /dev/ttyX devices and no mingetty on mainframe. This code tried to create new files in /dev/ while / was mounted ro. --- rc.d/rc.sysinit | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) (limited to 'rc.d/rc.sysinit') 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 -- cgit v1.2.1