mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-24 18:03:06 +02:00
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:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
;;
|
||||
*)
|
||||
|
||||
Reference in New Issue
Block a user