fix tty configuration

This commit is contained in:
Santosh D 2017-06-03 22:13:22 +02:00
parent d05688a78b
commit d93a070b03

View file

@ -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"