|
貌似在http://forums.fedoraforum.org/sh ... 6223找到了答案
level 3 和level 5都有
level 5照着做了一边,是可以自动登录
level3好像不行,症状就是黑屏,什么显示都没有。
上述网址给出的level3的做法如下,高手帮忙看看吧。
-------------------------------修改 /etc/init/start-ttys.conf----------------------------------
#
# This service starts the configured number of gettys.
start on stopped rc RUNLEVEL=[2345]
env ACTIVE_CONSOLES=/dev/tty[1-3]
env X_TTY=/dev/tty7
env TTY_AUTO_LOGIN=/dev/tty1
env AUTO_LOGIN_USER=myUserName
task
script
. /etc/sysconfig/init
for tty in $(echo $ACTIVE_CONSOLES) ; do
[ "$RUNLEVEL" = "5" -a "$tty" = "$X_TTY" ] && continue
if [ "$TTY_AUTO_LOGIN" = "$tty" ]
then
initctl start tty-auto-login AUTO_LOGIN_USER=$AUTO_LOGIN_USER TTY=$tty
else
initctl start tty TTY=$tty
fi
done
end script
--------------------------------------------END--------------------------------------------------------------------
----------------------------------添加tty-auto-login.sh文件--------------------------------------
# tty-auto-login - getty
#
# This service maintains a getty on the sepcified device. The tty is
# auto loged into.
stop on runlevel [016]
respawn
instance $TTY
instance $AUTO_LOGIN_USER
exec /sbin/mingetty --autologin=$AUTO_LOGIN_USER $TTY
---------------------------------------------END----------------------------------------------------
拜托了 |
|