openwrt添加一条开机自动执行的命令

来源:互联网 发布:linux local 编辑:程序博客网 时间:2024/05/21 09:51
修改:/etc/rc.local

在exit 0前面填写要执行的命令即可


如开机自动执行挂载U盘

root@OpenWrt:/# vi /etc/rc.local  


# Put your custom commands here that should be executed once# the system init finished. By default this file does nothing.mount /dev/sda1 /mnt/sda1exit 0


0 0
原创粉丝点击