找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 8154|回复: 88

===Padavan aria2 自动更新bt tracker list脚本更新===

  [复制链接]
本帖最后由 wupan 于 2021-11-29 09:53 编辑

近期有大量下载任务但网上现存的脚本看起来并不能使用,
故在此更新一版本, 供大家参考

  1. #!/bin/bash

  2. /usr/bin/aria.sh stop

  3. aria_config_file="/mnt/aria/config/aria2.conf" #修改为你的aria2.conf的绝对地址

  4. list=`wget --no-check-certificate -q -O - https://cdn.jsdelivr.net/gh/XIU2/TrackersListCollection/best_aria2.txt|awk NF|sed ":a;N;s/\n/,/g;ta"`

  5. if [ -z "`grep "bt-tracker" ${aria_config_file}`" ]; then

  6. sed -i '$a bt-tracker='${list} ${aria_config_file}

  7. echo 添加"bt-tracker="前缀...

  8. else

  9. sed -i "s@bt-tracker.*@bt-tracker=$list@g" ${aria_config_file}

  10. echo 升级完成...

  11. fi

  12. /usr/bin/aria.sh restart
复制代码


懒人通道:





本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

×
我的恩山、我的无线 The best wifi forum is right here.
顶楼主啦..希望楼主多发精品好帖啦.....
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

顶楼主啦..希望楼主多发精品好帖
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

高手,帮我修改个脚本行吗    上限20次后停止,谢谢
  1. #!/bin/sh
  2. i=50 # Will count (-1)
  3. while [ `ifconfig | awk  '/ppp0/ {getline;split($0,a,/[:.]/);print a[2]}'` -eq 10 ]
  4. do
  5. echo "The public IP does not meet the requirements!"
  6. echo "pppd will restart...."
  7. killall pppd
  8. /usr/sbin/pppd file /tmp/ppp/options.wan0 >/dev/null 2>&1 & #不知道openwrt的pppd拨号是什么命令
  9. sleep 1
  10. echo "pppd restart!"
  11. let i=i-1
  12. if [ $i -eq 1 ];then
  13. echo "Cycle times to reach the upper limit"
  14. exit 1
  15. fi
  16. done
  17. echo "ok"
  18. exit 0
复制代码
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

感谢分享!
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

来自手机 | 显示全部楼层
谢谢分享,看一看是怎样的。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

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

使用道具 举报

 楼主| | 显示全部楼层
morfell 发表于 2021-11-28 12:26
高手,帮我修改个脚本行吗    上限20次后停止,谢谢

02行
改为 i=20
试试看能否达到你的预期
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

播和DIYP的直播时移回看代码内置参数 咪咕直播 [修改]
高级模式
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

wupan 发表于 2021-11-29 08:12
02行
改为 i=20
试试看能否达到你的预期

谢谢。。。。但是尝试过把这个改低,不管用
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

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

使用道具 举报

楼主牛逼,感谢分享
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| | 显示全部楼层
morfell 发表于 2021-11-30 06:29
谢谢。。。。但是尝试过把这个改低,不管用

if [ $i -eq 1 ];then
echo "Cycle times to reach the upper limit"

这里可以打印下
如果确实打印20次, 说明确实只循环了20次哦
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

学习一下!!!
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

楼主辛苦了。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

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

本版积分规则

关闭

欢迎大家光临恩山无线论坛上一条 /1 下一条

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

GMT+8, 2024-5-7 07:57

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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

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