diff --git a/be3600.sh b/be3600.sh index 20bbd3f..95ac8a2 100644 --- a/be3600.sh +++ b/be3600.sh @@ -125,6 +125,9 @@ while true; do echo "退出" exit 0 ;; + g | G) + install_advanced_uninstall + ;; *) echo "无效选项,请重新选择。" ;; diff --git a/be6500.sh b/be6500.sh index 941b8d6..e455866 100644 --- a/be6500.sh +++ b/be6500.sh @@ -130,6 +130,9 @@ while true; do echo "退出" exit 0 ;; + g | G) + install_advanced_uninstall + ;; *) echo "无效选项,请重新选择。" ;; diff --git a/be9300.sh b/be9300.sh index 28c52e0..59bb00c 100644 --- a/be9300.sh +++ b/be9300.sh @@ -130,6 +130,9 @@ while true; do echo "退出" exit 0 ;; + g | G) + install_advanced_uninstall + ;; *) echo "无效选项,请重新选择。" ;; diff --git a/gl-inet-op24.sh b/gl-inet-op24.sh index f25a171..5a5a2c9 100644 --- a/gl-inet-op24.sh +++ b/gl-inet-op24.sh @@ -183,6 +183,9 @@ while true; do echo "退出" exit 0 ;; + g | G) + install_advanced_uninstall + ;; *) echo "无效选项,请重新选择。" ;; diff --git a/gl-inet.sh b/gl-inet.sh index 0e258f9..5f50eae 100755 --- a/gl-inet.sh +++ b/gl-inet.sh @@ -287,6 +287,9 @@ while true; do echo "退出" exit 0 ;; + g | G) + install_advanced_uninstall + ;; *) echo "无效选项,请重新选择。" ;; diff --git a/lib/lib-common.sh b/lib/lib-common.sh index 0c7e41d..15741d5 100644 --- a/lib/lib-common.sh +++ b/lib/lib-common.sh @@ -101,7 +101,7 @@ add_author_info() { uci set system.@system[0].notes='文档说明: https://tvhelper.cpolar.cn/' uci commit system - + sed -i "s/boardinfo.kernel,_('Local Time')/boardinfo.kernel,'脚本美化','wukongdaily',_('Local Time')/" /www/luci-static/resources/view/status/include/10_system.js rm -rf /tmp/luci-* /etc/init.d/uhttpd restart @@ -208,6 +208,25 @@ do_install_argon_skin() { 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位) # ============================================================================ diff --git a/mt5000.sh b/mt5000.sh index a79ba1c..2b65538 100644 --- a/mt5000.sh +++ b/mt5000.sh @@ -142,6 +142,9 @@ while true; do echo "退出" exit 0 ;; + g | G) + install_advanced_uninstall + ;; *) echo "无效选项,请重新选择。" ;; diff --git a/mudi7.sh b/mudi7.sh index e247e8a..b2e8b74 100644 --- a/mudi7.sh +++ b/mudi7.sh @@ -137,6 +137,9 @@ while true; do echo "退出" exit 0 ;; + g | G) + install_advanced_uninstall + ;; *) echo "无效选项,请重新选择。" ;;