fix tty configuration
This commit is contained in:
parent
d05688a78b
commit
d93a070b03
1 changed files with 2 additions and 2 deletions
|
@ -17,9 +17,9 @@ done
|
||||||
# Add user account
|
# Add user account
|
||||||
adduser -u 1000 -D -h /home/user -G users user 2>/dev/null
|
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"
|
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"
|
old="^tty$i::respawn:/sbin/getty 38400 tty$i"
|
||||||
new="# 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"
|
[ "$i" == "1" ] && new="tty1::respawn:/bin/login -f $autologin"
|
||||||
|
|
Loading…
Reference in a new issue