上网搜了一下,似乎从7.04就没有inittab了,用event.d取代了
1,用sudo init3 命令没有反应,是不是因为没有inittab这个配置文件的原因?
2,我切换到tty1,用telinit 3也没有反应,道理跟上面一样吗?
3,网上开机就进入文本的解决办法:
代码: 全选
sudo mv /etc/rc2.d/S13gdm /etc/rc2.d/K13gdm
4,如果只是在启动xwindows后,因为某些需要需临时关闭xwindows,而不是一开机就不启动x,怎么弄?
5,如果要一开机就不启动x,除了S13gdm改K13gdm的方法,能不能有其它的办法?
能不能修改event.d中的rc-default文件,看了一下这个文件内容,没看懂,看来以后还得学shell
代码: 全选
# rc - runlevel compatibility
#
# This task guesses what the "default runlevel" should be and starts the
# appropriate script.
start on stopped rcS
script
runlevel --reboot || true
if grep -q -w -- "-s\|single\|S" /proc/cmdline; then
telinit S
elif [ -r /etc/inittab ]; then
RL="$(sed -n -e "/^id:[0-9]*:initdefault:/{s/^id://;s/:.*//;p}" /etc/inittab || true)"
if [ -n "$RL" ]; then
telinit $RL
else
telinit 2
fi
else
telinit 2
fi
end script
高手解答