更新 bin/ZeroWrt
Signed-off-by: zhao <zhao@noreply.localhost>
This commit is contained in:
parent
d09e26d041
commit
89bbde347d
44
bin/ZeroWrt
44
bin/ZeroWrt
@ -47,6 +47,7 @@ show_menu() {
|
|||||||
color_output "\e[36m┃\e[0m 5. 一键换源 \e[36m┃\e[0m"
|
color_output "\e[36m┃\e[0m 5. 一键换源 \e[36m┃\e[0m"
|
||||||
color_output "\e[36m┃\e[0m 6. 一键部署 \e[36m┃\e[0m"
|
color_output "\e[36m┃\e[0m 6. 一键部署 \e[36m┃\e[0m"
|
||||||
color_output "\e[36m┃\e[0m 7. IPv6 开关 (仅适用于主路由) \e[36m┃\e[0m"
|
color_output "\e[36m┃\e[0m 7. IPv6 开关 (仅适用于主路由) \e[36m┃\e[0m"
|
||||||
|
color_output "\e[36m┃\e[0m 9. IstoreOS 风格化 \e[36m┃\e[0m"
|
||||||
color_output "\e[36m┃\e[0m 8. 检测更新 \e[36m┃\e[0m"
|
color_output "\e[36m┃\e[0m 8. 检测更新 \e[36m┃\e[0m"
|
||||||
color_output "\e[36m┃\e[0m 0. 退出 \e[36m┃\e[0m"
|
color_output "\e[36m┃\e[0m 0. 退出 \e[36m┃\e[0m"
|
||||||
color_output "\e[36m┃ ┃\e[0m"
|
color_output "\e[36m┃ ┃\e[0m"
|
||||||
@ -61,6 +62,7 @@ show_menu() {
|
|||||||
6) install_apps ;;
|
6) install_apps ;;
|
||||||
7) configure_ipv6 ;;
|
7) configure_ipv6 ;;
|
||||||
8) check_update ;;
|
8) check_update ;;
|
||||||
|
9) istore_style ;;
|
||||||
0) exit 0 ;;
|
0) exit 0 ;;
|
||||||
*) echo "无效选项,请重新输入"; show_menu ;;
|
*) echo "无效选项,请重新输入"; show_menu ;;
|
||||||
esac
|
esac
|
||||||
@ -435,7 +437,47 @@ configure_ipv6() {
|
|||||||
show_menu
|
show_menu
|
||||||
}
|
}
|
||||||
|
|
||||||
# 8. 检测更新
|
# 8. IstoreOS 风格化
|
||||||
|
istore_style() {
|
||||||
|
while true; do
|
||||||
|
clear
|
||||||
|
color_output "\e[34m[IstoreOS 风格化]\e[0m"
|
||||||
|
color_output "\e[36m┏━━━━━━━━━━━━━━━ 风格化选项 ━━━━━━━━━━━━━━━┓\e[0m"
|
||||||
|
color_output "\e[36m┃ ┃\e[0m"
|
||||||
|
color_output "\e[36m┃\e[0m 1. 安装 iStore 商店 \e[36m┃\e[0m"
|
||||||
|
color_output "\e[36m┃\e[0m 2. 安装网络向导和首页 \e[36m┃\e[0m"
|
||||||
|
color_output "\e[36m┃\e[0m 0. 返回主菜单 \e[36m┃\e[0m"
|
||||||
|
color_output "\e[36m┃ ┃\e[0m"
|
||||||
|
color_output "\e[36m┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛\e[0m"
|
||||||
|
|
||||||
|
read -p "$(color_output "\e[33m请输入您的选择 [0-2]: \e[0m")" style_choice
|
||||||
|
|
||||||
|
case "$style_choice" in
|
||||||
|
1)
|
||||||
|
color_output "\e[34m[安装 iStore 商店]\e[0m"
|
||||||
|
wget -qO imm.sh https://git.kejizero.online/zhao/files/raw/branch/main/%20Script/iStoreOS/install.sh && chmod +x install.sh && ./install.sh
|
||||||
|
color_output "\e[32miStore 商店安装完成\e[0m"
|
||||||
|
read -p "按 Enter 键继续..."
|
||||||
|
;;
|
||||||
|
2)
|
||||||
|
color_output "\e[34m[安装网络向导和首页]\e[0m"
|
||||||
|
is-opkg install luci-i18n-quickstart-zh-cn
|
||||||
|
color_output "\e[32m网络向导和首页安装完成\e[0m"
|
||||||
|
read -p "按 Enter 键继续..."
|
||||||
|
;;
|
||||||
|
0)
|
||||||
|
show_menu
|
||||||
|
return
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
color_output "\e[31m无效选项,请重新选择\e[0m"
|
||||||
|
sleep 2
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
done
|
||||||
|
}
|
||||||
|
|
||||||
|
# 9. 检测更新
|
||||||
check_update() {
|
check_update() {
|
||||||
color_output "\e[34m[检测更新]\e[0m"
|
color_output "\e[34m[检测更新]\e[0m"
|
||||||
color_output "正在检查更新..."
|
color_output "正在检查更新..."
|
||||||
|
Loading…
Reference in New Issue
Block a user