|
本帖最后由 wideyu 于 2017-5-5 00:41 编辑
- [RT-AC54U /opt/home/admin]# grep 'tar -xzvf' /etc/storage/ez_buttons_script.sh
- [ ! -f /etc/storage/china_ip_list.txt ] && tar -xzvf /etc_ro/china_ip_list.tgz -C /tmp && ln -sf /tmp/china_ip_list.txt /etc/storage/china_ip_list.txt
- [ ! -f /etc/storage/basedomain.txt ] && tar -xzvf /etc_ro/basedomain.tgz -C /tmp && ln -sf /tmp/basedomain.txt /etc/storage/basedomain.txt
复制代码
内置SS规则文件存放在 /etc_ro/china_ip_list.tgz 和 /etc_ro/basedomain.tgz 无法修改,可以变通方法更新:
选择所需 订阅 GFW 规则更新: gfwlist 官方列表 Koolshare 列表,手动更新 SS 规则文件,等待更新结束,确认文件时间
- [RT-AC54U /opt/home/admin]# ls -l /tmp/ss/*.txt
- -rw-rw-rw- 1 admin root 75210 May 4 17:58 /tmp/ss/all_domain.txt
- -rw-rw-rw- 1 admin root 229424 May 4 17:57 /tmp/ss/chnroute.txt
复制代码 复制已更新文件到 /etc/storage
- [RT-AC54U /opt/home/admin]# cp -f /tmp/ss/all_domain.txt /etc/storage/all_domain.txt
- [RT-AC54U /opt/home/admin]# cp -f /tmp/ss/chnroute.txt /etc/storage/chnroute.txt
复制代码 修改从 /etc/storage 取内置SS规则文件- sed '3 acp -f /etc/storage/all_domain.txt /tmp/basedomain.txt' -i /etc/storage/script/Sh15_ss.sh
- sed '3 acp -f /etc/storage/chnroute.txt /tmp/china_ip_list.txt' -i /etc/storage/script/Sh15_ss.sh
复制代码
纯折腾哈,启动更新、定时更新也是用得好好的。。。
|
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有账号?立即注册
×
|