Re: 这绝不是bug——关于开机出现等待60秒的提示的解决方案
发表于 : 2012-09-21 9:27
网络这一条还是要用到init.d,这里是ubuntu官方文档中关于server版网络配置的文档,里面最后一个就是用的init.d。没找到service对应的命令,如果有的话还请告知tusooa 写了:额。笨兔似乎早放弃了/etc/init.d了。
网络这一条还是要用到init.d,这里是ubuntu官方文档中关于server版网络配置的文档,里面最后一个就是用的init.d。没找到service对应的命令,如果有的话还请告知tusooa 写了:额。笨兔似乎早放弃了/etc/init.d了。
sleep就是等待的意思。我觉得问题不在sleep,ubuntu的功能实在是太全了,所以开机肯定需要一些时间的。如果你想10秒内开机或者诸如此类的,抱歉我帮不了你,因为我没有这样的需要。我只能说换个发行版吧dhqdqk 写了:可我这的有三处sleep,不知道区别。
# failsafe
description "Failsafe Boot Delay"
author "Clint Byrum <[email protected]>"
start on filesystem and net-device-up IFACE=lo
stop on static-network-up or starting rc-sysinit
emits failsafe-boot
console output
script
# Determine if plymouth is available
if [ -x /bin/plymouth ] && /bin/plymouth --ping ; then
PLYMOUTH=/bin/plymouth
else
PLYMOUTH=":"
fi
# The point here is to wait for 2 minutes before forcibly booting
# the system. Anything that is in an "or" condition with 'started
# failsafe' in rc-sysinit deserves consideration for mentioning in
# these messages. currently only static-network-up counts for that.
sleep 20
# Plymouth errors should not stop the script because we *must* reach
# the end of this script to avoid letting the system spin forever
# waiting on it to start.
$PLYMOUTH message --text="Waiting for network configuration..." || :
sleep 40
$PLYMOUTH message --text="Waiting up to 60 more seconds for network configuration..." || :
sleep 59
$PLYMOUTH message --text="Booting system without full network configuration..." || :
# give user 1 second to see this message since plymouth will go
# away as soon as failsafe starts.
sleep 1
exec initctl emit --no-wait failsafe-boot
end script
post-start exec logger -t 'failsafe' -p daemon.warning "Failsafe of 120 seconds reached."
主要问题:并无grub提示等待,然后是读条界面:先是紫色背景,感觉时间要15s吧才能出现ubuntu的读条画面,又过一段时间20s吧才到登录界面,反正开机时间长;今天新装的12.04