feat: 添加隐藏选项 g 调用高级卸载插件。mt3600be不支持

This commit is contained in:
2026-07-22 20:49:33 +08:00
parent b4fb96485b
commit 14d228a5ef
8 changed files with 41 additions and 1 deletions

View File

@@ -125,6 +125,9 @@ while true; do
echo "退出" echo "退出"
exit 0 exit 0
;; ;;
g | G)
install_advanced_uninstall
;;
*) *)
echo "无效选项,请重新选择。" echo "无效选项,请重新选择。"
;; ;;

View File

@@ -130,6 +130,9 @@ while true; do
echo "退出" echo "退出"
exit 0 exit 0
;; ;;
g | G)
install_advanced_uninstall
;;
*) *)
echo "无效选项,请重新选择。" echo "无效选项,请重新选择。"
;; ;;

View File

@@ -130,6 +130,9 @@ while true; do
echo "退出" echo "退出"
exit 0 exit 0
;; ;;
g | G)
install_advanced_uninstall
;;
*) *)
echo "无效选项,请重新选择。" echo "无效选项,请重新选择。"
;; ;;

View File

@@ -183,6 +183,9 @@ while true; do
echo "退出" echo "退出"
exit 0 exit 0
;; ;;
g | G)
install_advanced_uninstall
;;
*) *)
echo "无效选项,请重新选择。" echo "无效选项,请重新选择。"
;; ;;

View File

@@ -287,6 +287,9 @@ while true; do
echo "退出" echo "退出"
exit 0 exit 0
;; ;;
g | G)
install_advanced_uninstall
;;
*) *)
echo "无效选项,请重新选择。" echo "无效选项,请重新选择。"
;; ;;

View File

@@ -208,6 +208,25 @@ do_install_argon_skin() {
fi fi
} }
# ============================================================================
# 高级卸载插件安装
# ============================================================================
install_advanced_uninstall() {
if command -v apk > /dev/null 2>&1; then
echo "高级卸载插件暂不支持 25.12.x OpenWrt 系统"
echo "请在 OPKG 包管理器的系统上使用此功能"
return 1
fi
if ! command -v is-opkg > /dev/null 2>&1; then
echo "请先安装 iStore 商店后再安装高级卸载插件"
return 1
fi
echo "正在安装高级卸载插件..."
wget --user-agent="Mozilla/5.0" -O "/tmp/luci-app-uninstall.run" "https://plugin.vumstar.com/download/luci-app-uninstall.run"
sh /tmp/luci-app-uninstall.run
echo "高级卸载插件安装完成"
}
# ============================================================================ # ============================================================================
# iStore 商店安装 (64位) # iStore 商店安装 (64位)
# ============================================================================ # ============================================================================

View File

@@ -142,6 +142,9 @@ while true; do
echo "退出" echo "退出"
exit 0 exit 0
;; ;;
g | G)
install_advanced_uninstall
;;
*) *)
echo "无效选项,请重新选择。" echo "无效选项,请重新选择。"
;; ;;

View File

@@ -137,6 +137,9 @@ while true; do
echo "退出" echo "退出"
exit 0 exit 0
;; ;;
g | G)
install_advanced_uninstall
;;
*) *)
echo "无效选项,请重新选择。" echo "无效选项,请重新选择。"
;; ;;