serial-console: remove baudrate from inittab

new versions of agetty missinterpretes the baudrate and set it as TERM
without the parameter agetty use the previous rate that was set by the
kernel via console=XXX,Baudrate parameter.

Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
This commit is contained in:
Arne Fitzenreiter
2017-08-15 20:08:22 +02:00
parent 1bee37ba2c
commit 874eabd6f5
3 changed files with 5 additions and 2 deletions

View File

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

View File

@@ -41,6 +41,9 @@ extract_files
# update linker config
ldconfig
# Remove baudrate from inittab
sed -i -e "s| 115200[Nn]8||g" /etc/inittab
# Update Language cache
/usr/local/bin/update-lang-cache

View File

@@ -12,7 +12,7 @@ ser_console() {
case $1 in
console=*)
scon=${1##console=};
sed -i -e "s|^7:2345:respawn:/sbin/agetty.*|7:2345:respawn:/sbin/agetty ${scon%%,*} ${scon##*,}|g" /etc/inittab
sed -i -e "s|^7:2345:respawn:/sbin/agetty.*|7:2345:respawn:/sbin/agetty ${scon%%,*}|g" /etc/inittab
shift
;;
*)