From d93a070b03d91c397a77b2fe68638e6bea2c9aed Mon Sep 17 00:00:00 2001 From: Santosh D Date: Sat, 3 Jun 2017 22:13:22 +0200 Subject: [PATCH] fix tty configuration --- postmarketos-base/postmarketos-base.post-install | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/postmarketos-base/postmarketos-base.post-install b/postmarketos-base/postmarketos-base.post-install index 165f08344..323baceac 100644 --- a/postmarketos-base/postmarketos-base.post-install +++ b/postmarketos-base/postmarketos-base.post-install @@ -17,9 +17,9 @@ done # Add user account adduser -u 1000 -D -h /home/user -G users user 2>/dev/null -# Autologin on tty1, disable tty 3-5 +# Autologin on tty1, let busybox autoconfigure 2-6 autologin="root" -for i in 1 3 4 5 6; do +for i in 1 2 3 4 5 6; do old="^tty$i::respawn:/sbin/getty 38400 tty$i" new="# tty$i::respawn:/sbin/getty 38400 tty$i" [ "$i" == "1" ] && new="tty1::respawn:/bin/login -f $autologin"