From 2a3595b51c978f8e3a9d15d8abdce84e0e8a8877 Mon Sep 17 00:00:00 2001 From: Michael Prokop Date: Tue, 1 Jun 2010 00:03:40 +0200 Subject: [PATCH] /etc/inittab*: set %serialspeed% in grmlserial settings. --- etc/inittab.grml | 7 ++++--- etc/inittab.small | 15 ++++++--------- 2 files changed, 10 insertions(+), 12 deletions(-) diff --git a/etc/inittab.grml b/etc/inittab.grml index 39f5ae8..549bc18 100644 --- a/etc/inittab.grml +++ b/etc/inittab.grml @@ -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) diff --git a/etc/inittab.small b/etc/inittab.small index 26b135c..f57120d 100644 --- a/etc/inittab.small +++ b/etc/inittab.small @@ -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 -- 2.1.4