aboutsummaryrefslogtreecommitdiff
path: root/meta-linaro
diff options
context:
space:
mode:
authorVictor Kamensky <victor.kamensky@linaro.org>2013-10-15 14:38:36 -0700
committerFathi Boudra <fathi.boudra@linaro.org>2013-10-16 09:00:42 +0300
commitbb2db04df1e6e17987e2eedc49690bb72cb143da (patch)
tree957253cecd8ddaa72f7648a77ff5d6464331a21f /meta-linaro
parentfacf62048b84cd7060226696b30aee76a39ee2d9 (diff)
downloadmeta-linaro-bb2db04df1e6e17987e2eedc49690bb72cb143da.tar.gz
auto-serial-console: make sure that all console= entries checked
auto-getty is called with -e option which means errexit (exit on error). If console= entry is not in /etc/securetty file `/bin/egrep "^${secure}$" /etc/securetty` returns error and processing stops. Make sure that unsuccessful egrep does not stop script execution add 'true' at the end. Existing auto-getty were failing to start session on ttyO2 on Pandaboard when the following command line was used: console=tty0 console=ttyO2,115200n8 root=/dev/mmcblk0p2 ... and tty0 is not in /etc/securetty Change-Id: I1654c3a48cd45247b78085fe1712e4a51b0bffc2 Signed-off-by: Victor Kamensky <victor.kamensky@linaro.org>
Diffstat (limited to 'meta-linaro')
-rwxr-xr-xmeta-linaro/recipes-linaro/auto-serial-console/auto-serial-console/auto-getty2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta-linaro/recipes-linaro/auto-serial-console/auto-serial-console/auto-getty b/meta-linaro/recipes-linaro/auto-serial-console/auto-serial-console/auto-getty
index 97efb9d3..7b181bc3 100755
--- a/meta-linaro/recipes-linaro/auto-serial-console/auto-serial-console/auto-getty
+++ b/meta-linaro/recipes-linaro/auto-serial-console/auto-serial-console/auto-getty
@@ -11,7 +11,7 @@ while true; do
tty=${arg#console=}
tty=${tty#/dev/}
secure=`echo "${tty}" | cut -f1 -d,`
- secure=`/bin/egrep "^${secure}$" /etc/securetty`
+ secure=`/bin/egrep "^${secure}$" /etc/securetty || true`
if [ -n "$tty" -a -n "${secure}" ]; then
PORT=${tty%%,*}