Update of /cvsroot/devil-linux/build/scripts/scripts
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16142/scripts/scripts
Modified Files:
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.19
retrieving revision 1.20
diff -u -d -r1.19 -r1.20
--- install-on-usb 9 Jan 2005 23:19:17 -0000 1.19
+++ install-on-usb 9 Jan 2005 23:45:41 -0000 1.20
@@ -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
@@ -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):"
|