fix tty configuration

This commit is contained in:
Santosh D 2017-06-03 22:13:22 +02:00
parent d0ddbb5f29
commit 948d4f0caf
1 changed files with 2 additions and 2 deletions

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"