openwrt去除开机等待时间
方法,正常开机,开机完成,回车进入命令行,输入
vim /boot/grub/grub.cfg
然后就可以编辑了
serial --unit=0 --speed=115200 --word=8 --parity=no --stop=1 --rtscts=off
terminal_input console serial; terminal_output console serial
set default="0"
set timeout="5" ##按i进入编辑模式,将此处的5改为0即可,当然你也可以改成任意你喜欢的时间
search -l kernel -s root
menuentry "OpenWrt" {
linux /boot/vmlinuz root=PARTUUID=95a30341-41eb-c0de-91d3-8344528d4202 rootwait c console ttyS0,115200n8 noinitrd
}
menuentry "OpenWrt (failsafe)" {
linux /boot/vmlinuz failsafe=true root=PARTUUID=95a30341-41eb-c0de-91d3-8344528d4202 rootwait c c noinitrd
}
修改完成,esc进入命令行模式,输入:wq保存退出即可
回到openwrt的命令行模式,reboot重启后,你会发现没有这5秒的等待时间,世界是如此的美好