分页: 2 / 5

Re: 这绝不是bug——关于开机出现等待60秒的提示的解决方案

发表于 : 2012-08-10 9:10
eexpress
你们难道不是nm管理网络的?哪里需要手动。NetworkManager接管啊。

Re: 这绝不是bug——关于开机出现等待60秒的提示的解决方案

发表于 : 2012-08-10 9:11
ljj_jjl2008
eexpress 写了:你们难道不是nm管理网络的?哪里需要手动。NetworkManager接管啊。
不是。是用pppoe设置的开机自动拨号。

Re: 这绝不是bug——关于开机出现等待60秒的提示的解决方案

发表于 : 2012-08-10 9:14
Strange
用network manager的话,把所有网卡启动script都删掉就好了...

Re: 这绝不是bug——关于开机出现等待60秒的提示的解决方案

发表于 : 2012-08-10 9:15
eexpress
ljj_jjl2008 写了:
eexpress 写了:你们难道不是nm管理网络的?哪里需要手动。NetworkManager接管啊。
不是。是用pppoe设置的开机自动拨号。
那你掺和啥。你和lz的要求不同嘛。
:em04

Re: 这绝不是bug——关于开机出现等待60秒的提示的解决方案

发表于 : 2012-08-10 9:16
ljj_jjl2008
eexpress 写了:
ljj_jjl2008 写了:
eexpress 写了:你们难道不是nm管理网络的?哪里需要手动。NetworkManager接管啊。
不是。是用pppoe设置的开机自动拨号。
那你掺和啥。你和lz的要求不同嘛。
:em04
也有60秒等待提示。症状是一样的。

Re: 这绝不是bug——关于开机出现等待60秒的提示的解决方案

发表于 : 2012-08-10 9:25
eexpress
那是lz乱搞的方法,碰巧适合了你。而且,这方法,是头痛医头的。正常的系统,凭啥用到failsafe.conf。
而lz并不是需要搞这个,他只是需要一个自动的网络环境。

Re: 这绝不是bug——关于开机出现等待60秒的提示的解决方案

发表于 : 2012-08-10 9:33
zhw2101024
ljj_jjl2008 写了:好的,按照你的意见办。
题外话:你的头像是什么来历?看上去很有故事感,介绍一下? :em06 :em04
有一次在网上闲逛,看到一组风景图,每张都有一种穿越时空的感觉,就下载下来了,并且在多个网盘和在线相册都有备份 :em09

Re: 这绝不是bug——关于开机出现等待60秒的提示的解决方案

发表于 : 2012-08-10 9:35
zhw2101024
eexpress 写了:那是lz乱搞的方法,碰巧适合了你。而且,这方法,是头痛医头的。正常的系统,凭啥用到failsafe.conf。
而lz并不是需要搞这个,他只是需要一个自动的网络环境。
回大神,等待60秒是针对平板的无线网络的,无线环境下需要这种延时,而电脑的网络环境有很大不同。

Re: 这绝不是bug——关于开机出现等待60秒的提示的解决方案

发表于 : 2012-08-13 10:26
binco
目前只知道一个SUDO命令,其他的一概不懂
只是来这里学习一下大家的方法 :em20

Re: 这绝不是bug——关于开机出现等待60秒的提示的解决方案

发表于 : 2012-08-29 20:44
tusooa
额。笨兔似乎早放弃了/etc/init.d了。

Re: 这绝不是bug——关于开机出现等待60秒的提示的解决方案

发表于 : 2012-08-29 21:08
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."

Re: 这绝不是bug——关于开机出现等待60秒的提示的解决方案

发表于 : 2012-08-30 9:09
zhw2101024
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."
就是sleep 59那个,不严谨了 :em06
Waiting up to 60 more seconds for network configuration
下面那个

Re: 这绝不是bug——关于开机出现等待60秒的提示的解决方案

发表于 : 2012-08-30 9:24
wjchen
mark一下,以后可能用得着。谢谢lz分享经验。

Re: 这绝不是bug——关于开机出现等待60秒的提示的解决方案

发表于 : 2012-08-30 9:31
ljj_jjl2008
我把所有的sleep都改了。
分别改成了4、3、2、1秒。
:em05 :em05

Re: 这绝不是bug——关于开机出现等待60秒的提示的解决方案

发表于 : 2012-08-30 9:48
zhw2101024
ljj_jjl2008 写了:我把所有的sleep都改了。
分别改成了4、3、2、1秒。
:em05 :em05
好狠的心啊 :em66