Skip to content
Browse files

Make setup run at VT101 on serial port.

  • Loading branch information...
1 parent ecd1668 commit 1000d2e674f6097444a450744e8a74b8d6648199 @fest3er committed May 15, 2012
Showing with 9 additions and 1 deletion.
  1. +9 −1 distrib/build/sources/media-isoinstall/installroot/etc/install.rc
View
10 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;

0 comments on commit 1000d2e

Please sign in to comment.
Something went wrong with that request. Please try again.