Sir zach

专注于算法,AI, Android以及音视频领域 欢迎关注我的最新博客: zachliu.cn

导航

Ubuntu开机提示: Booting system without full network configuration

Posted on 2014-04-22 22:40  SirZach  阅读(1264)  评论(0编辑  收藏  举报
$sudo vim /etc/init/failsafe.conf 
 1 script 
2 # Determine if plymouth is available
3 if [ -x /bin/plymouth ] && /bin/plymouth --ping ; then
4 PLYMOUTH=/bin/plymouth
5 else
6 PLYMOUTH=":"
7 fi
8
9 # The point here is to wait for 2 minutes before forcibly booting
10 # the system. Anything that is in an "or" condition with ""started
11 # failsafe"" in rc-sysinit deserves consideration for mentioning in
12 # these messages. currently only static-network-up counts for that.
13
14 sleep 20
15
16 # Plymouth errors should not stop the script because we *must* reach
17 # the end of this script to avoid letting the system spin forever
18 # waiting on it to start.
19 ¥PLYMOUTH message --text="Waiting for network configuration..." || :
20 sleep 1  #modify this
21
22 ¥PLYMOUTH message --text="Waiting up to 60 more seconds for network configuration..." || :
23 sleep 1  #modify this
24 ¥PLYMOUTH message --text="Booting system without full network configuration..." || :
25
26 # give user 1 second to see this message since plymouth will go
27 # away as soon as failsafe starts.
28 sleep 1
29 exec initctl emit --no-wait failsafe-boot
30 end script