Skip to content

openwrt 开机脚本

11

开机启动
vi /etc/rc.local
在 exit 0 之前,加入下面这一行
/opt/hpup.sh > /dev/null 2>&1 &
确保你的脚本有执行权限
chmod +x /opt/hpup.sh


查看进程
ps | grep hpup.sh

定时任务
cat /etc/crontabs/root
添加任务
*/5 * * * * /opt/hpping
重载
/etc/init.d/cron restart