LEDE/OpenWrt 编译完成后,关闭开机启动的时候的打印信息
步骤:打开文件 /boot/grub/grub.cfg
修改为以下内容 删除 console=tty0
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="0"
set root='(hd0,gpt1)'
menuentry "OpenWrt" {
linux /boot/vmlinuz root=PARTUUID=025fedb7-7bf1-984b-35d6-6e8118ed5c02 rootwait console=ttyS0,115200n8 noinitrd
}
menuentry "OpenWrt (failsafe)" {
linux /boot/vmlinuz failsafe=true root=PARTUUID=025fedb7-7bf1-984b-35d6-6e8118ed5c02 rootwait console=ttyS0,115200n8 noinitrd
}
修改ttyd默认登陆 不需要每次输入用户名和密码
修改/etc/config/ttyd里的option command 一行
默认为:option command '/bin/login'
修改成:option command '/usr/libexec/login.sh'
保存之后,可以重启路由器看看