This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "IPFire 2.x development tree".
The branch, next has been updated via 12522ba725a537d93e7f56edc116d43ae625940c (commit) via e0b28afe59c5cd0d5af5f2542f1df71045358010 (commit) from 5537d89ab8a7cbea117b42c53f4fafb108096c1c (commit)
Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below.
- Log ----------------------------------------------------------------- commit 12522ba725a537d93e7f56edc116d43ae625940c Author: Arne Fitzenreiter arne_f@ipfire.org Date: Tue Oct 18 15:56:20 2011 +0200
securetty: add ttyAMA0 for versatile serial console.
commit e0b28afe59c5cd0d5af5f2542f1df71045358010 Author: Arne Fitzenreiter arne_f@ipfire.org Date: Tue Oct 18 15:55:07 2011 +0200
firstsetup: edit serial console device matching to commandline.
-----------------------------------------------------------------------
Summary of changes: config/etc/securetty | 1 + src/initscripts/init.d/firstsetup | 21 +++++++++++++++++++++ 2 files changed, 22 insertions(+), 0 deletions(-)
Difference in files: diff --git a/config/etc/securetty b/config/etc/securetty index 7d4ae8c..9a6a9fd 100644 --- a/config/etc/securetty +++ b/config/etc/securetty @@ -4,6 +4,7 @@ tty3 tty4 tty5 tty6 +ttyAMA0 ttyS0 ttyS1 ttyS2 diff --git a/src/initscripts/init.d/firstsetup b/src/initscripts/init.d/firstsetup index 8ea1b5e..b658cfa 100644 --- a/src/initscripts/init.d/firstsetup +++ b/src/initscripts/init.d/firstsetup @@ -1,4 +1,25 @@ #!/bin/bash +# Edit the serial console entry at /etc/inittab matching to console parameter. +ser_console() { + while test x"$1" != x + do + 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 + shift + ;; + *) + shift + ;; + esac + done +} +cmdline=`cat /proc/cmdline` +ser_console $cmdline +# reload inittab +/sbin/init q +# /etc/init.d/sysklogd start export LANG=en_US.utf8 /usr/local/sbin/setup /dev/tty2 INSTALL
hooks/post-receive -- IPFire 2.x development tree