aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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%%,*}