|
我转过来的/ X8 u, i- u3 S3 s4 @$ n
list=`wget -qO- https://raw.githubusercontent.com/ngosang/trackerslist/master/trackers_all.txt|awk NF|sed ":a;N;s/\n/,/g;ta"`
& |! I4 y1 Y1 _# |4 T+ @1 Bif [ -z "`grep "bt-tracker" /etc/aria2/aria2.conf`" ]; then+ t/ K0 \ t6 Q
sed -i '$a bt-tracker='${list} /etc/aria2/aria2.conf
+ P% V: N) b) eecho add......
. d2 }) ^2 i$ Q0 f- I; M0 welse
$ P2 ?2 A7 Z+ rsed -i "s@bt-tracker.*@bt-tracker=$list@g" /etc/aria2/aria2.conf
i( Y, y3 W4 e7 ~: Techo update......7 U E3 n. Y6 l" T
fi
) _: M5 l, s! V1 L9 C" X9 }! `+ W8 N' m# S6 B) V+ w4 ^& {
/etc/aria2/aria2.conf 就是你的 aria2 的 config 文件。自己修改路径5 q- a5 X( c- t$ G( L
上面这一段操作前,在关闭 aria2:service aria2 stop
i) _. f* U: U最后启动 aria2:service aria2 start. m$ B' @- r+ q" h% I/ t+ o" Z
8 |/ D9 b5 l; ]0 ]" m; C& c" B8 S
|
|