KP自动更新合并KPR规则,op/padavan koolproxy自动更新合并koolproxyR规则,KPR去广告规则
KP自动更新合并KPR规则自动重启脚本,脚本自带更新自定义规则文件!根据固件版本复制内容新建kp.sh,放在你想要的位置,老毛子padavan请放在/etc/storage/下,计划任务添加运行脚本时间(就是KP自动更新时间和间隔)
比如:每天凌晨一点二十运行脚本
20 1 * * * /脚本路径/kp.sh
op/padavan可用KP自动更新合并KPR规则自动重启脚本
#!/bin/sh
cd /kp路径/KoolProxy/data/rules
# 删除旧版本规则文件
rm -rf koolproxy.txt
rm -rf daily.txt
rm -rf kp.dat
rm -rf user.txt
# 下载新版本规则文件
wget -O daily.txt https://raw.githubusercontent.com/user1121114685/koolproxyR/master/koolproxyR/koolproxyR/data/rules/easylistchina.txt
wget -O koolproxy.txt https://raw.githubusercontent.com/user1121114685/koolproxyR/master/koolproxyR/koolproxyR/data/rules/fanboy-annoyance.txt
wget -O kp.dat https://raw.githubusercontent.com/user1121114685/koolproxyR/master/koolproxyR/koolproxyR/data/rules/kp.dat
wget -O user.txt https://raw.githubusercontent.com/user1121114685/koolproxyR/master/koolproxyR/koolproxyR/data/rules/user.txt
# 下载扩展规则合并
#wget -O koolproxy_tmp.txt https://raw.githubusercontent.com/user1121114685/koolproxyR/master/koolproxyR/koolproxyR/data/rules/kpr_video_list.txt
wget -O daily_tmp.txt https://raw.githubusercontent.com/user1121114685/koolproxyR/master/koolproxyR/koolproxyR/data/rules/yhosts.txt
#cat koolproxy_tmp.txt >>koolproxy.txt
cat daily_tmp.txt >>daily.txt
#rm -rf koolproxy_tmp.txt
rm -rf daily_tmp.txt
# 重启KP
/etc/init.d/koolproxy restart
老毛子可用KP自动更新合并KPR规则自动重启脚本
#!/bin/sh
cd /kp路径/ad/7620koolproxy/data/rules
# 删除旧版本规则文件
rm -rf koolproxy.txt
rm -rf daily.txt
rm -rf kp.dat
rm -rf user.txt
rm -rf koolproxy.txt.http
rm -rf koolproxy.txt.https
rm -rf user.txt.https
rm -rf user.txt.http
# 下载新版本规则文件
wget -O daily.txt https://raw.githubusercontent.com/user1121114685/koolproxyR/master/koolproxyR/koolproxyR/data/rules/easylistchina.txt --no-check-certificate
wget -O koolproxy.txt https://raw.githubusercontent.com/user1121114685/koolproxyR/master/koolproxyR/koolproxyR/data/rules/fanboy-annoyance.txt --no-check-certificate
wget -O kp.dat https://raw.githubusercontent.com/user1121114685/koolproxyR_rule_list/master/kp.dat --no-check-certificate
# 下载扩展规则合并
#wget -O koolproxy_tmp.txt https://raw.githubusercontent.co ... /kpr_video_list.txt --no-check-certificate
wget -O daily_tmp.txt https://raw.githubusercontent.co ... ta/rules/yhosts.txt --no-check-certificate
#cat koolproxy_tmp.txt >>koolproxy.txt
cat daily_tmp.txt >>daily.txt
#rm -rf koolproxy_tmp.txt
rm -rf daily_tmp.txt
# 更新自定义规则
cd /etc/storage
rm -rf koolproxy_rules_script.sh
wget -O koolproxy_rules_script.sh https://raw.githubusercontent.com/user1121114685/koolproxyR_rule_list/master/kpr_our_rule.txt --no-check-certificate
chmod 755 /etc/storage/koolproxy_rules_script.sh
# 关闭KP
nvram set koolproxy_enable=0 && nvram set koolproxy_enable=0 && /tmp/script/_kool_proxy &
# 开启KP
sleep 10
nvram set koolproxy_enable=1 && nvram set koolproxy_enable=1 && /tmp/script/_kool_proxy
原文:https://www.right.com.cn/forum/thread-1010342-1-1.html
点击链接加入群聊三群:751529538
点击链接加入群聊二群:376877156
点击链接加入群聊【路由器交流群:622891808已满】
本站附件分享,如果附件失效,可以去找找看
饿了么红包