找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 61918|回复: 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.
发表于 2019-9-14 22:39 | 显示全部楼层
kpr的规则,一般路由带不动啊,n1之类旁路由还行,感谢分享

点评

时代在进步,arm稳定运行  详情 回复 发表于 2019-9-15 14:04
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2019-9-14 22:39 | 显示全部楼层
谢谢,看看
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2019-9-14 22:44 | 显示全部楼层
dddddddddddddddddddddddddd
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2019-9-14 22:46 | 显示全部楼层
看看






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

使用道具 举报

发表于 2019-9-14 22:49 | 显示全部楼层
看看能不能用吧,试一试
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2019-9-14 22:51 | 显示全部楼层
可用脚本看看咋样
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2019-9-14 22:57 | 显示全部楼层
看看的很大吗
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2019-9-14 23:15 | 显示全部楼层
做的不错哦,楼主加油,期待更好的作品!
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2019-9-14 23:37 | 显示全部楼层
付费还要+回复,真不厚道

点评

没发过附件帖子,不会搞,对不住了,我只是想隐藏一下怕太过于显眼,被和谐了  详情 回复 发表于 2019-9-14 23:39
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2019-9-14 23:39 | 显示全部楼层
mjyhj 发表于 2019-9-14 23:37
付费还要+回复,真不厚道

没发过附件帖子,不会搞,对不住了,我只是想隐藏一下怕太过于显眼,被和谐了
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2019-9-14 23:41 | 显示全部楼层
梅林能用?
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2019-9-14 23:55 | 显示全部楼层
KP自动更新合并KPR规则,无人值守一气呵成,op,潘多拉,老毛子全适用
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2019-9-15 00:23 | 显示全部楼层
看看哪些规则
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2019-9-15 00:29 | 显示全部楼层
感谢大佬们的付出
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-4-17 01:01

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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

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