Re: 这绝不是bug——关于开机出现等待60秒的提示的解决方案
发表于 : 2012-08-10 9:10
你们难道不是nm管理网络的?哪里需要手动。NetworkManager接管啊。
不是。是用pppoe设置的开机自动拨号。eexpress 写了:你们难道不是nm管理网络的?哪里需要手动。NetworkManager接管啊。
那你掺和啥。你和lz的要求不同嘛。ljj_jjl2008 写了:不是。是用pppoe设置的开机自动拨号。eexpress 写了:你们难道不是nm管理网络的?哪里需要手动。NetworkManager接管啊。
也有60秒等待提示。症状是一样的。eexpress 写了:那你掺和啥。你和lz的要求不同嘛。ljj_jjl2008 写了:不是。是用pppoe设置的开机自动拨号。eexpress 写了:你们难道不是nm管理网络的?哪里需要手动。NetworkManager接管啊。
有一次在网上闲逛,看到一组风景图,每张都有一种穿越时空的感觉,就下载下来了,并且在多个网盘和在线相册都有备份ljj_jjl2008 写了:好的,按照你的意见办。
题外话:你的头像是什么来历?看上去很有故事感,介绍一下?![]()
回大神,等待60秒是针对平板的无线网络的,无线环境下需要这种延时,而电脑的网络环境有很大不同。eexpress 写了:那是lz乱搞的方法,碰巧适合了你。而且,这方法,是头痛医头的。正常的系统,凭啥用到failsafe.conf。
而lz并不是需要搞这个,他只是需要一个自动的网络环境。
代码: 全选
cat failsafe.conf
# failsafe
description "Failsafe Boot Delay"
author "Clint Byrum <clint@ubuntu.com>"
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."
就是sleep 59那个,不严谨了youzhiyili 写了:木有看到"sleep 60"代码: 全选
cat failsafe.conf
# failsafe
description "Failsafe Boot Delay"
author "Clint Byrum <clint@ubuntu.com>"
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."
下面那个Waiting up to 60 more seconds for network configuration
好狠的心啊ljj_jjl2008 写了:我把所有的sleep都改了。
分别改成了4、3、2、1秒。
![]()