更新 bin/ZeroWrt
Signed-off-by: zhao <zhao@noreply.localhost>
This commit is contained in:
parent
9954bd2980
commit
d58164e2d4
21
bin/ZeroWrt
21
bin/ZeroWrt
@ -149,9 +149,11 @@ change_source() {
|
||||
color_output "1. 阿里源"
|
||||
color_output "2. 清华源"
|
||||
color_output "3. 中科大源"
|
||||
color_output "4. 官方源"
|
||||
color_output "4. 高校联合镜像站"
|
||||
color_output "5. 南方科技大学"
|
||||
color_output "6. 官方源"
|
||||
color_output "0. 返回"
|
||||
read -p "请输入您的选择 [0-4]: " source_choice
|
||||
read -p "请输入您的选择 [0-6]: " source_choice
|
||||
|
||||
# 检测当前设备架构
|
||||
arch=$(uname -m)
|
||||
@ -200,16 +202,22 @@ change_source() {
|
||||
# 根据选择的源和架构来设置对应的 base_url
|
||||
case "$source_choice" in
|
||||
1)
|
||||
base_url="https://mirrors.aliyun.com/openwrt/releases/24.10.0-rc5/packages/$arch_name"
|
||||
base_url="https://mirrors.aliyun.com/openwrt/releases/24.10.0-rc6/packages/$arch_name"
|
||||
;;
|
||||
2)
|
||||
base_url="https://mirrors.tuna.tsinghua.edu.cn/openwrt/releases/24.10.0-rc5/packages/$arch_name"
|
||||
base_url="https://mirrors.tuna.tsinghua.edu.cn/openwrt/releases/24.10.0-rc6/packages/$arch_name"
|
||||
;;
|
||||
3)
|
||||
base_url="https://mirrors.ustc.edu.cn/openwrt/releases/24.10.0-rc5/packages/$arch_name"
|
||||
base_url="https://mirrors.ustc.edu.cn/openwrt/releases/24.10.0-rc6/packages/$arch_name"
|
||||
;;
|
||||
4)
|
||||
base_url="https://downloads.openwrt.org/releases/24.10.0-rc5/packages/$arch_name"
|
||||
base_url="https://mirrors.xjtu.edu.cn/openwrt/releases/24.10.0-rc6/packages/$arch_name"
|
||||
;;
|
||||
5)
|
||||
base_url="https://mirrors.sustech.edu.cn/openwrt/releases/24.10.0-rc6/packages/$arch_name"
|
||||
;;
|
||||
6)
|
||||
base_url="https://downloads.openwrt.org/releases/24.10.0-rc6/packages/$arch_name"
|
||||
;;
|
||||
0) show_menu ; return ;;
|
||||
*)
|
||||
@ -233,7 +241,6 @@ EOF
|
||||
show_menu
|
||||
}
|
||||
|
||||
|
||||
# 6. 一键设置
|
||||
one_click_setup() {
|
||||
while true; do
|
||||
|
Loading…
Reference in New Issue
Block a user