找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 60609|回复: 996

KP自动更新合并KPR规则,无人值守一气呵成,op,潘多拉,老毛子全适用

 火... [复制链接]
发表于 2019-9-14 22:36 | 显示全部楼层 |阅读模式
本帖最后由 xqxwjj 于 2019-9-15 00:21 编辑

别的不多说,KP自动更新合并KPR规则自动重启脚本,脚本自带更新自定义规则文件!根据固件版本复制内容新建kp.sh,放在你想要的位置,老毛子请放在/etc/storage/下,计划任务添加运行脚本时间(就是KP自动更新时间和间隔)
比如:每天凌晨一点二十运行脚本
20 1 * * * /脚本路径/kp.sh
op/padavan可用脚本:


#!/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.co ... s/easylistchina.txt
wget -O koolproxy.txt https://raw.githubusercontent.co ... anboy-annoyance.txt
wget -O kp.dat https://raw.githubusercontent.co ... R/data/rules/kp.dat
wget -O user.txt https://raw.githubusercontent.co ... data/rules/user.txt
# 下载扩展规则合并
#wget -O koolproxy_tmp.txt https://raw.githubusercontent.co ... /kpr_video_list.txt
wget -O daily_tmp.txt https://raw.githubusercontent.co ... ta/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



老毛子可用脚本:

#!/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.co ... s/easylistchina.txt --no-check-certificate
wget -O koolproxy.txt https://raw.githubusercontent.co ... anboy-annoyance.txt --no-check-certificate
wget -O kp.dat https://raw.githubusercontent.co ... _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.co ... er/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 &


点评

# 下载扩展规则合并下面那一行为啥用#号注释掉了?  发表于 2019-9-30 04:47

评分

参与人数 2恩山币 +2 收起 理由
SkyTiger + 1 感谢你的分享,无论怎样,你都是最无私的人!来,说说,你E盘上还有啥一起给我吧!
cstar007 + 1 感谢你的分享,无论怎样,你都是最无私的人!

查看全部评分

我的恩山、我的无线 The best wifi forum is right here.
发表于 2021-1-27 16:19 | 显示全部楼层
谢谢 来看看
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2020-11-15 21:58 | 显示全部楼层
现在还能用么?
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2020-8-19 21:36 | 显示全部楼层
学习中,感谢付出
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2020-5-3 22:02 | 显示全部楼层

谢谢,看看
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2020-4-5 04:09 | 显示全部楼层
干货 啊! 这个必须支持楼主一下咯~~
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2020-2-11 21:51 | 显示全部楼层
看看能用不
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2020-2-11 21:05 | 显示全部楼层
RE: KP自动更新合并KPR规则,无人值守一气呵成,op,潘多拉,老毛子全适用 [修改]
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2020-2-11 18:16 | 显示全部楼层
66666666666666
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2020-2-11 17:29 | 显示全部楼层
真相总在回复后,学习大神的
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2020-2-11 16:53 | 显示全部楼层
辛苦。。。。。。。。。。。。。。。。。。。。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2020-2-11 16:37 | 显示全部楼层
谢谢分享。。。。。。。。。。。。。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2020-2-11 15:07 | 显示全部楼层
qqqqqqqqq
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2020-2-11 15:05 | 显示全部楼层
ganxfnexiang...........
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2020-2-11 14:37 | 显示全部楼层
很好,把自己的k2折腾折腾
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2020-2-11 14:10 | 显示全部楼层
什么情况,想要
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

有疑问请添加管理员QQ86788181|手机版|小黑屋|Archiver|恩山无线论坛(常州市恩山计算机开发有限公司版权所有) ( 苏ICP备05084872号 )

GMT+8, 2024-3-28 21:02

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

| 江苏省互联网有害信息举报中心 举报信箱:js12377 | @jischina.com.cn 举报电话:025-88802724 本站不良内容举报信箱:68610888@qq.com 举报电话:0519-86695797

快速回复 返回顶部 返回列表