以openwrt为例
- 去光速联官网注册账号并购买加速服务
- 下载脚本,
- 根据自己的光速联账号修改脚本
账号手机号
密码进入https://www.cmd5.com/
查询结果:md5(password,32) = 5f4dcc3b5aa765d61d8327deb882cf99
复制md5密码,即5f4dcc3b5aa765d61d8327deb882cf99
-
用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