diff --git a/bin/ZeroWrt b/bin/ZeroWrt index 3f63a50..e471408 100644 --- a/bin/ZeroWrt +++ b/bin/ZeroWrt @@ -439,42 +439,22 @@ configure_ipv6() { # 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 install.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 + clear + color_output "\e[34m[开始安装 iStoreOS 风格化]\e[0m" + + # 安装 iStore 商店 + color_output "\e[34m[1/2] 正在安装 iStore 商店...\e[0m" + wget -qO install.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" + + # 安装网络向导和首页 + color_output "\e[34m[2/2] 正在安装网络向导和首页...\e[0m" + is-opkg install luci-i18n-quickstart-zh-cn + color_output "\e[32m网络向导和首页安装完成\e[0m" + + color_output "\e[32m所有组件安装完成!\e[0m" + read -p "按 Enter 键返回主菜单..." + show_menu } # 9. 检测更新