Skip to content

Commit 903b772

Browse files
2096779623Grimler91
authored andcommitted
termux-tools: Add multiple sources.
1 parent c0a5699 commit 903b772

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed

scripts/termux-change-repo

+42
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,12 @@ select_repository() {
6262
ROOT="https://mirror.mwt.me/termux/root"
6363
X11="https://mirror.mwt.me/termux/x11"
6464

65+
elif [ "$1" == "Mirrors by nabeelshaikh7" ]; then
66+
echo "[*] nabeelshaikh7's (AWS) mirrors selected"
67+
MAIN="https://packages.nscdn.top/termux-main"
68+
ROOT="https://packages.nscdn.top/termux-root"
69+
X11="https://packages.nscdn.top/termux-x11"
70+
6571
elif [ "$1" == "Mirrors by Purdue Linux Users Group" ]; then
6672
echo "[*] Purdue LUG's (USA) mirrors selected"
6773
MAIN="https://plug-mirror.rcac.purdue.edu/termux/termux-main"
@@ -121,6 +127,36 @@ select_repository() {
121127
MAIN="https://mirrors.aliyun.com/termux/termux-packages-24"
122128
ROOT="https://mirrors.aliyun.com/termux/termux-root-packages-24"
123129
X11="https://mirrors.aliyun.com/termux/x11-packages"
130+
131+
elif [ "$1" == "Mirrors by SDU" ]; then
132+
echo "[*] SDU (CN) mirrors selected"
133+
MAIN="https://mirrors.sdu.edu.cn/termux/termux-main"
134+
ROOT="https://mirrors.sdu.edu.cn/termux/termux-root"
135+
X11="https://mirrors.sdu.edu.cn/termux/termux-x11"
136+
137+
elif [ "$1" == "Mirrors by SCAU" ]; then
138+
echo "[*] SCAU (CN) mirrors selected"
139+
MAIN="https://mirrors.scau.edu.cn/termux/apt/termux-main"
140+
ROOT="https://mirrors.scau.edu.cn/termux/apt/termux-root"
141+
X11="https://mirrors.scau.edu.cn/termux/apt/termux-x11"
142+
143+
elif [ "$1" == "Mirrors by SAU" ]; then
144+
echo "[*] SAU (CN) mirrors selected"
145+
MAIN="https://mirrors.sau.edu.cn/termux/apt/termux-main"
146+
ROOT="https://mirrors.sau.edu.cn/termux/apt/termux-root"
147+
X11="https://mirrors.sau.edu.cn/termux/apt/termux-x11"
148+
149+
elif [ "$1" == "Mirrors by SusTech" ]; then
150+
echo "[*] SusTech (CN) mirrors selected"
151+
MAIN="https://mirrors.sustech.edu.cn/termux/apt/termux-main"
152+
ROOT="https://mirrors.sustech.edu.cn/termux/apt/termux-root"
153+
X11="https://mirrors.sustech.edu.cn/termux/apt/termux-x11"
154+
155+
elif [ "$1" == "Mirrors by NJUPT" ]; then
156+
echo "[*] NJUPT (CN) mirrors selected"
157+
MAIN="https://mirrors.njupt.edu.cn/termux/apt/termux-main"
158+
ROOT="https://mirrors.njupt.edu.cn/termux/apt/termux-root"
159+
X11="https://mirrors.njupt.edu.cn/termux/apt/termux-x11"
124160

125161
else
126162
echo "[!] Error: unknown repository: '$1'. Exiting"
@@ -174,6 +210,7 @@ dialog \
174210
"Mirrors by Grimler" "Hosted on grimler.se" off \
175211
"Mirrors by Librehat" "Hosted on termux.librehat.com" off \
176212
"Mirrors by Mwt" "Hosted on mirror.mwt.me" off \
213+
"Mirrors by nabeelshaikh7" "Hosted on packages.nscdn.top" off \
177214
"Mirrors by Purdue Linux Users Group" "Hosted on plug-mirror.rcac.purdue.edu" off \
178215
"Mirrors by Sahilister" "Hosted on termux.sahilister.in" off \
179216
"Mirrors by Tsinghua University" "Hosted on mirrors.tuna.tsinghua.edu.cn" off \
@@ -184,6 +221,11 @@ dialog \
184221
"Mirrors by USTC" "Hosted on mirrors.ustc.edu.cn" off \
185222
"Mirrors by HIT" "Hosted on mirrors.hit.edu.cn" off \
186223
"Mirrors by Alibaba" "Hosted on mirrors.aliyun.com" off \
224+
"Mirrors by SDU" "Hosted on mirrors.sdu.edu.cn" off \
225+
"Mirrors by SCAU" "Hosted on mirrors.scau.edu.cn" off \
226+
"Mirrors by SAU" "Hosted on mirrors.sau.edu.cn" off \
227+
"Mirrors by SusTech" "Hosted on mirrors.sustech.edu.cn" off \
228+
"Mirrors by NJUPT" "Hosted on mirrors.njupt.edu.cn" off \
187229
2> "$TEMPFILE"
188230

189231
retval=$?

0 commit comments

Comments
 (0)