Skip to content

Commit

Permalink
Make setup run at VT101 on serial port.
Browse files Browse the repository at this point in the history
  • Loading branch information
fest3er committed May 15, 2012
1 parent ecd1668 commit 1000d2e
Showing 1 changed file with 9 additions and 1 deletion.
Expand Up @@ -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;
Expand Down

0 comments on commit 1000d2e

Please sign in to comment.