- 设置挂载usb后启动脚本
nvram set script_usbmount=xxx
注意xxx必须要有可执行权限
例如usb挂在之后自动挂载 entware 环境变量,可以这么写
#!/bin/sh
ln -nsf /mnt/onmp/entware /tmp/opt
/opt/etc/init.d/rc.unslung start
export PATH=$PATH:/mnt/onmp/entware/sbin:/mnt/onmp/entware/bin
... # 干一些其他事情
网友评论