Changes for serial console support

This commit is contained in:
Arne Fitzenreiter
2009-05-10 14:57:59 +02:00
parent 86c8565eb2
commit 2f3973e495
5 changed files with 11 additions and 2 deletions

View File

@@ -25,5 +25,7 @@ su:S016:once:/sbin/sulogin
4:2345:respawn:/sbin/agetty tty4 9600
5:2345:respawn:/sbin/agetty tty5 9600
6:2345:respawn:/sbin/agetty tty6 9600
# *** Uncomment for serial console
#7:2345:respawn:/sbin/agetty ttyS0 38400
# End /etc/inittab

View File

@@ -3,7 +3,12 @@ default saved
foreground = 6d6963
background = ffffff
#hiddenmenu
# *** If you want use serial console comment next line
splashimage (hd0,0)/grub/ipfire.xpm.gz
# *** add "console=ttyS0,38400n8" to kernel cmdline,
# *** uncomment following lines and check also inittab
#serial --unit=0 --speed=38400
#terminal --timeout=1 serial console
title IPFire
root (hd0,0)
kernel /vmlinuz-KVER-ipfire root=ROOT rootdelay=10 panic=10 MOUNT

View File

@@ -1,5 +1,7 @@
bin/probenic.sh
etc/ntp
etc/rc.d/init.d/beep
etc/rc.d/init.d/console
etc/rc.d/init.d/snort
etc/rc.d/init.d/networking/red
etc/ssh/moduli

View File

@@ -19,7 +19,7 @@ LENGTH=40
play () {
beep -l $LENGTH -f $1
beep -l $LENGTH -f $1 2> /dev/null
}

View File

@@ -71,7 +71,7 @@ case "${1}" in
grep -o '\btty[[:digit:]]*\b'`
do
openvt -f -w -c ${TTY#tty} -- \
/bin/sh -c "${MODE_COMMAND}"
/bin/sh -c "${MODE_COMMAND}" 2>/dev/null
done
# Set the font (if not already set above) and the keymap