aboutsummaryrefslogtreecommitdiff
path: root/meta-linaro/recipes-core/auto-serial-console/auto-serial-console/auto-getty
diff options
context:
space:
mode:
Diffstat (limited to 'meta-linaro/recipes-core/auto-serial-console/auto-serial-console/auto-getty')
-rwxr-xr-xmeta-linaro/recipes-core/auto-serial-console/auto-serial-console/auto-getty36
1 files changed, 0 insertions, 36 deletions
diff --git a/meta-linaro/recipes-core/auto-serial-console/auto-serial-console/auto-getty b/meta-linaro/recipes-core/auto-serial-console/auto-serial-console/auto-getty
deleted file mode 100755
index 05d8fb62..00000000
--- a/meta-linaro/recipes-core/auto-serial-console/auto-serial-console/auto-getty
+++ /dev/null
@@ -1,36 +0,0 @@
-#!/bin/sh -e
-
-[ -f /etc/default/autogetty ] && . /etc/default/autogetty
-
-[ 1 -gt $ENABLED ] && exit
-
-while true; do
- for arg in $(cat /proc/cmdline); do
- case $arg in
- console=*)
- tty=${arg#console=}
- tty=${tty#/dev/}
-
- case $tty in
- tty[a-zA-Z]* )
- PORT=${tty%%,*}
-
- tmp=${tty##$PORT,}
- SPEED=${tmp%%n*}
-
- # if console=/dev/tty* without speed is given
- [ $SPEED = $PORT ] && SPEED=115200
- BITS=${tmp##${SPEED}n}
-
- # 8bit serial is default
- [ -z $BITS ] && BITS=8
- # [ 8 -eq $BITS ] && GETTY_ARGS="$GETTY_ARGS -8 "
-
- [ -z $SPEED ] && SPEED='115200,57600,38400,19200,9600'
-
- GETTY_ARGS="$AUTOGETTY_ARGS $GETTY_ARGS $SPEED $PORT"
- /sbin/getty $GETTY_ARGS
- esac
- esac
- done
-done