mirror of
https://github.com/superconvert/smart-os.git
synced 2024-11-22 18:20:30 +08:00
fixed root login on 'UNKNOWN'
This commit is contained in:
parent
0b2a902a28
commit
f2fd01f9d1
@ -173,7 +173,8 @@ cat<<"EOF">etc/inittab
|
|||||||
# this yourself...
|
# this yourself...
|
||||||
#
|
#
|
||||||
# Start an "askfirst" shell on the console (whatever that may be) -f root 自动登录
|
# Start an "askfirst" shell on the console (whatever that may be) -f root 自动登录
|
||||||
::respawn:-/bin/login -f root
|
# 一定要加 tty1 ,否则登录时,会提示 : root login on 'UNKNOWN'
|
||||||
|
tty1::respawn:-/bin/login -f root
|
||||||
# Start an "askfirst" shell on /dev/tty2-4
|
# Start an "askfirst" shell on /dev/tty2-4
|
||||||
tty2::respawn:-/bin/sh
|
tty2::respawn:-/bin/sh
|
||||||
tty3::respawn:-/bin/sh
|
tty3::respawn:-/bin/sh
|
||||||
|
Loading…
Reference in New Issue
Block a user