

用winscp或其他工具将GSL.sh上传到路由器,以/root/guangsulian/为例,权限全给0777。
登录openwrt后台,找到“系统-计划任务”,添加一行
0 */7 * * * sh /root/guangsulian/GSL.sh

找到“系统-启动项”,翻到最下面,粘贴下面一段:
# Put your custom commands here that should be executed once
# the system init finished. By default this file does nothing.
sleep 60 && sh /root/guangsulian/GSL.sh
exit 0

原文:https://www.cnblogs.com/iangel/p/15201854.html