From 1000d2e674f6097444a450744e8a74b8d6648199 Mon Sep 17 00:00:00 2001 From: NPMurphy Date: Tue, 15 May 2012 01:58:57 -0400 Subject: [PATCH] Make setup run at VT101 on serial port. --- .../media-isoinstall/installroot/etc/install.rc | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/distrib/build/sources/media-isoinstall/installroot/etc/install.rc b/distrib/build/sources/media-isoinstall/installroot/etc/install.rc index 316636d..ebda669 100644 --- a/distrib/build/sources/media-isoinstall/installroot/etc/install.rc +++ b/distrib/build/sources/media-isoinstall/installroot/etc/install.rc @@ -163,7 +163,15 @@ case $restore in [ -d /proc/bus/usb ] && mount -n -o move /proc/bus/usb /harddisk/proc/bus/usb cd /harddisk - chroot . /usr/sbin/setup /dev/tty2${autoSetup} + echo $(getarg console) | \ + awk '{if ($1 ~ /ttyS0,[0-9]+$/) { exit 0 } else { exit 1 }}' + if [ $? -eq 0 ]; then + # Use VT101 on serial port + chroot . /bin/bash -c "TERM=vt101 /usr/sbin/setup /dev/tty2${autoSetup}" + else + # VESA console behaves better + chroot . /usr/sbin/setup /dev/tty2${autoSetup} + fi echo -ne $CLS echo; echo;