mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-27 12:38:11 +00:00
Merge pull request #508 from justincormack/autologin
Do not prompt for username at login
This commit is contained in:
commit
023d9c624c
@ -1,12 +1,12 @@
|
|||||||
|
|
||||||
Welcome to Moby
|
Welcome to Moby
|
||||||
Kernel \r on an \m (\l)
|
|
||||||
|
|
||||||
## .
|
## .
|
||||||
## ## ## ==
|
## ## ## ==
|
||||||
## ## ## ## ## ===
|
## ## ## ## ## ===
|
||||||
/"""""""""""""""""\___/ ===
|
/"""""""""""""""""\___/ ===
|
||||||
~~~ {~~ ~~~~ ~~~ ~~~~ ~~~ ~ / ===- ~~~
|
~~~ {~~ ~~~~ ~~~ ~~~~ ~~~ ~ / ===- ~~~
|
||||||
\\______ o __/
|
\______ o __/
|
||||||
\\ \\ __/
|
\ \ __/
|
||||||
\\____\\_______/
|
\____\_______/
|
||||||
|
|
||||||
|
@ -22,7 +22,8 @@ setup_console() {
|
|||||||
# skip consoles already in inittab
|
# skip consoles already in inittab
|
||||||
grep -q "^$tty:" "$inittab" && return
|
grep -q "^$tty:" "$inittab" && return
|
||||||
|
|
||||||
echo "$tty::respawn:/sbin/getty $line $speed $tty $term" >> "$inittab"
|
echo "$tty::once:cat /etc/issue" >> "$inittab"
|
||||||
|
echo "$tty::respawn:/sbin/getty -n -l /bin/sh $line $speed $tty $term" >> "$inittab"
|
||||||
if ! grep -q -w "$tty" "$securetty"; then
|
if ! grep -q -w "$tty" "$securetty"; then
|
||||||
echo "$tty" >> "$securetty"
|
echo "$tty" >> "$securetty"
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user