ubuntu下开机启动mentohust
ubuntu下开机启动mentohust
ubuntu下开机启动mentohust
安装chkconfig
sudo apt-get install chkconfig
www.2cto.com
编写脚本:login.sh
#!/bin/bash
sudo mentohust <<"123456" (密码)
使用root 权限保存到/etc/init.d中
并且chmod +x login.sh
将启动文件添加到开机启动项里面
www.2cto.com
sudo chkconfig -a login.sh
若出现无法找到insserv文件的问题
则:sudo ln -s /usr/lib/insserv/insserv /sbin/insserv
再执行sudo chkconfig -a login.sh
再chkconfig查看
login.sh 是否显示on的状态或者是2345
若是,重启成功自动联网
作者 wanbo
评论暂时关闭