From 89bbde347d576a075e9bba84bcd5daf40b9195f0 Mon Sep 17 00:00:00 2001 From: zhao Date: Tue, 7 Jan 2025 23:48:30 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20bin/ZeroWrt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zhao --- bin/ZeroWrt | 46 ++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 44 insertions(+), 2 deletions(-) diff --git a/bin/ZeroWrt b/bin/ZeroWrt index f7c08f3..ad67c88 100644 --- a/bin/ZeroWrt +++ b/bin/ZeroWrt @@ -46,7 +46,8 @@ show_menu() { color_output "\e[36m┃\e[0m 4. 恢复出厂设置 \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 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 0. 退出 \e[36m┃\e[0m" color_output "\e[36m┃ ┃\e[0m" @@ -61,6 +62,7 @@ show_menu() { 6) install_apps ;; 7) configure_ipv6 ;; 8) check_update ;; + 9) istore_style ;; 0) exit 0 ;; *) echo "无效选项,请重新输入"; show_menu ;; esac @@ -435,7 +437,47 @@ configure_ipv6() { 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() { color_output "\e[34m[检测更新]\e[0m" color_output "正在检查更新..."