/etc/inittab*: set %serialspeed% in grmlserial settings.
authorMichael Prokop <mika@grml.org>
Mon, 31 May 2010 22:03:40 +0000 (00:03 +0200)
committerMichael Prokop <mika@grml.org>
Mon, 31 May 2010 22:03:40 +0000 (00:03 +0200)
etc/inittab.grml
etc/inittab.small

index 39f5ae8..549bc18 100644 (file)
@@ -66,9 +66,10 @@ po::powerokwait:/etc/init.d/powerfail stop
 ################################################################################
 # Please do NOT remove the following lines as they are important for the
 # bootoption serial/console. All lines starting with "#grmlserial#" will be
-# activated then.
-#grmlserial#T0:23:respawn:/sbin/getty -L ttyS0 -l /usr/bin/zsh-login 115200,57600,38400,19200,9600,4800,2400,1200 vt100
-#grmlserial#T1:23:respawn:/sbin/getty -L ttyS1 -l /usr/bin/zsh-login 115200,57600,38400,19200,9600,4800,2400,1200 vt100
+# activated and %serialspeed% will be replaced with the according baude rate
+# settings specified on kernel command line then.
+#grmlserial#T0:23:respawn:/bin/bash -c "/sbin/getty -L ttyS0 -l /usr/bin/zsh-login %serialspeed% vt100 || sleep 30"
+#grmlserial#T1:23:respawn:/bin/bash -c "/sbin/getty -L ttyS1 -l /usr/bin/zsh-login %serialspeed% vt100 || sleep 30"
 ################################################################################
 
 # Example how to put a getty on a serial line (for a terminal)
index 26b135c..f57120d 100644 (file)
@@ -66,20 +66,17 @@ po::powerokwait:/etc/init.d/powerfail stop
 ################################################################################
 # Please do NOT remove the following lines as they are important for the
 # bootoption serial/console. All lines starting with "#grmlserial#" will be
-# activated then.
-#grmlserial#T0:23:respawn:/sbin/getty -L ttyS0 -l /usr/bin/zsh-login 115200,57600,38400,19200,9600,4800,2400,1200 vt100
-#grmlserial#T1:23:respawn:/sbin/getty -L ttyS1 -l /usr/bin/zsh-login 115200,57600,38400,19200,9600,4800,2400,1200 vt100
+# activated and %serialspeed% will be replaced with the according baude rate
+# settings specified on kernel command line then.
+#grmlserial#T0:23:respawn:/bin/bash -c "/sbin/getty -L ttyS0 -l /usr/bin/zsh-login %serialspeed% vt100 || sleep 30"
+#grmlserial#T1:23:respawn:/bin/bash -c "/sbin/getty -L ttyS1 -l /usr/bin/zsh-login %serialspeed% vt100 || sleep 30"
 ################################################################################
 
 # Example how to put a getty on a serial line (for a terminal)
-#
 # T0:23:respawn:/sbin/getty -L ttyS0 9600 vt100
 # T1:23:respawn:/sbin/getty -L ttyS1 9600 vt100
-
-# Important! Please do not remove the following 2 lines as the are important for cheatcode serial:
-#T0:2345:respawn:/bin/bash -c "/sbin/mgetty ttyS0 || sleep 30"
-#T1:2345:respawn:/bin/bash -c "/sbin/mgetty ttyS1 || sleep 30"
-# Important! #####################################################################################
+# T0:2345:respawn:/bin/bash -c "/sbin/mgetty ttyS0 || sleep 30"
+# T1:2345:respawn:/bin/bash -c "/sbin/mgetty ttyS1 || sleep 30"
 
 # Example how to put a getty on a modem line.
 #T3:23:respawn:/sbin/mgetty -x0 -s 57600 ttyS3