]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
Changes for serial console support
authorArne Fitzenreiter <arne_f@ipfire.org>
Sun, 10 May 2009 12:57:59 +0000 (14:57 +0200)
committerArne Fitzenreiter <arne_f@ipfire.org>
Sun, 10 May 2009 12:57:59 +0000 (14:57 +0200)
config/etc/inittab
config/grub/grub.conf
config/rootfiles/core/28/filelists/files
src/initscripts/init.d/beep
src/initscripts/init.d/console

index 7697daa61a3314309967e0392caf5bc49e2ff1b8..527a3f4de73ce138ce08fac832eb33dbbd111dd2 100644 (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
index ccb4a09ec5d0c439b706e91d331a332f81f1af39..b4e279669b03ec3d48b79341ceeaa1faaf5ef0e5 100644 (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
index 9b8ea8f27c9c5932084308742754a1c0427d805a..c62f6e230d6e02ba99d644610aab4862c14b02d4 100644 (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
index de6666edf404c84ba8053d28d2b95f0427407c9a..6498e293ad7f56017d41c221c6c3a19a2eb5382e 100644 (file)
@@ -19,7 +19,7 @@ LENGTH=40
 
 play () {
 
-       beep -l $LENGTH -f $1
+       beep -l $LENGTH -f $1 2> /dev/null
 
 }
 
index cb61a405ff03963723ad7598976ccd4b61a6e7f6..8d2e49dfbe63fcc7d6fe620d1ec315ff575f8370 100644 (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