Update of /cvsroot/devil-linux/build/scripts/scripts
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16269/scripts/scripts
Modified Files:
Tag: rel-1-2-patches
install-on-usb
Log Message:
install-on-usb now supports the setting of the serial console baud rate
Index: install-on-usb
===================================================================
RCS file: /cvsroot/devil-linux/build/scripts/scripts/install-on-usb,v
retrieving revision 1.15.2.3
retrieving revision 1.15.2.4
diff -u -d -r1.15.2.3 -r1.15.2.4
--- install-on-usb 9 Jan 2005 23:19:57 -0000 1.15.2.3
+++ install-on-usb 9 Jan 2005 23:46:03 -0000 1.15.2.4
@@ -132,7 +132,7 @@
cat > $TMPDIR/grub.conf <<-EOF
timeout=10
- serial --unit=0 --speed=9600 --word=8 --parity=no --stop=1
+ serial --unit=0 --speed=$SERIALSPEED --word=8 --parity=no --stop=1
terminal --timeout=10 serial console
# Devil-Linux Boot Line options:
# DL_config=/dev/discs/disc0/part1 - loads the etc.tar.bz2 form that device
@@ -144,7 +144,7 @@
# type device names.
title Devil-Linux - Serial Console
root (hd0,$2)
- kernel /boot/vmlinuz ro root=/dev/ram0 init=/linuxrc $RAMDISK console=tty0 console=ttyS0,9600n8
+ kernel /boot/vmlinuz ro root=/dev/ram0 init=/linuxrc $RAMDISK console=tty0 console=ttyS0,9600n8
initrd /boot/initrd.gz
title Devil-Linux - Standard VGA
root (hd0,$2)
@@ -420,6 +420,32 @@
[ $ANS = "3" ] && { BOOTLOADER="grub"; SERIAL_CONSOLE="true"; }
[ $ANS = "4" ] && BOOTLOADER="lilo"
+SERIALSPEED="9600"
+if [ "$SERIAL_CONSOLE" = "true" ]; then
+ echo
+ echo "Select Baud Rate for the serial console"
+ echo " 1) 2400"
+ echo " 2) 4800"
+ echo " 3) 9600"
+ echo " 4) 19200"
+ echo " 5) 38400"
+ echo " 6) 57600"
+ echo " 7) 115200"
+ ANS=""
+ read -p "Choice: " -t 60 -n 1 -rs ANS
+ ANS=${ANS:-1}
+ echo $ANS
+ [ $ANS = "1" ] && SERIALSPEED="2400"
+ [ $ANS = "2" ] && SERIALSPEED="4800"
+ [ $ANS = "3" ] && SERIALSPEED="9600"
+ [ $ANS = "4" ] && SERIALSPEED="19200"
+ [ $ANS = "5" ] && SERIALSPEED="38400"
+ [ $ANS = "6" ] && SERIALSPEED="57600"
+ [ $ANS = "7" ] && SERIALSPEED="115200"
+fi
+
+RAMDISK="ramdisk_blocksize=1024"
+
#### Choose the format used during build for initrd.gz:
echo
echo "Select correct initrd.gz format used (DL default is CramFS):"
|