aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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