Merge pull request #508 from justincormack/autologin

Do not prompt for username at login
This commit is contained in:
Justin Cormack 2016-09-14 13:51:07 +01:00 committed by GitHub
commit 023d9c624c
2 changed files with 6 additions and 5 deletions

View File

@ -1,12 +1,12 @@
Welcome to Moby
Kernel \r on an \m (\l)
## .
## ## ## ==
## ## ## ## ## ===
/"""""""""""""""""\___/ ===
~~~ {~~ ~~~~ ~~~ ~~~~ ~~~ ~ / ===- ~~~
\\______ o __/
\\ \\ __/
\\____\\_______/
\______ o __/
\ \ __/
\____\_______/

View File

@ -22,7 +22,8 @@ setup_console() {
# skip consoles already in inittab
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
echo "$tty" >> "$securetty"
fi