返回

Openwrt自动更新bt Tracker

创建脚本

#!/bin/bash

list=`wget -qO- https://raw.githubusercontent.com/ngosang/trackerslist/master/trackers_all.txt|awk NF|sed ":a;N;s/\n/,/g;ta"`

uci set aria2.main.bt_tracker=${list}
uci commit aria2
/etc/init.d/aria2 restart

定时执行更新脚本

系统-计划任务-添加任务

# 每天凌晨1点执行
0 1 * * * /etc/config/auto_sync_aria2c_tracker.sh >/dev/null 2>&1
Built with Hugo
Theme Stack designed by Jimmy