qnap NAS开机启动自定义脚本

qnapnas开机启动脚本 by 老李菜刀 at 2020-12-07

All AL-based NAS(TS-x31+ and TS-x31X) and TS-x31 use ... 其它的参考https://wiki.qnap.com/wiki/Running_Your_Own_Application_at_Startup

ubiattach -m 6 -d 2 /bin/mount -t ubifs ubi2:config /tmp/config vi /tmp/config/autorun.sh chmod +x /tmp/config/autorun.sh echo . echo "unmounting /tmp/config..." umount /tmp/config ubidetach -m 6

完成后就可以看到自己的脚本啦,重启NAS就会执行自定义的脚本