以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