remove: 删除高级卸载插件功能

- 删除 lib/lib-common.sh 中的 advanced_uninstall() 函数
- 删除所有机型脚本中的高级卸载菜单选项
- 重新编号各脚本菜单选项
This commit is contained in:
2026-07-09 09:15:50 +08:00
parent 44756e87b2
commit 7eabcfecef
9 changed files with 11 additions and 74 deletions

View File

@@ -94,9 +94,7 @@ while true; do
echo
light_magenta " 7. 安装个性化UI辅助插件(by VMatrices)"
echo
light_magenta " 8. 安装高级卸载插件"
echo
light_magenta " 9. 恢复出厂设置/重置路由器"
light_magenta " 8. 恢复出厂设置/重置路由器"
echo
echo " Q. 退出本程序"
echo
@@ -125,9 +123,6 @@ while true; do
do_install_ui_helper
;;
8)
advanced_uninstall
;;
9)
recovery
;;
q | Q)

View File

@@ -92,11 +92,9 @@ while true; do
echo
light_magenta " 6. 安装个性化UI辅助插件(by VMatrices)"
echo
light_magenta " 7. 安装高级卸载插件"
light_magenta " 7. 安装新首页"
echo
light_magenta " 8. 安装新首页"
echo
light_magenta " 9. 恢复出厂设置"
light_magenta " 8. 恢复出厂设置"
echo
echo " Q. 退出本程序"
echo
@@ -122,12 +120,9 @@ while true; do
do_install_ui_helper
;;
7)
advanced_uninstall
;;
8)
do_install_new_quickstart
;;
9)
8)
recovery
;;
q | Q)

View File

@@ -92,11 +92,9 @@ while true; do
echo
light_magenta " 6. 安装个性化UI辅助插件(by VMatrices)"
echo
light_magenta " 7. 安装高级卸载插件"
light_magenta " 7. 安装新首页"
echo
light_magenta " 8. 安装新首页"
echo
light_magenta " 9. 恢复出厂设置"
light_magenta " 8. 恢复出厂设置"
echo
echo " Q. 退出本程序"
echo
@@ -122,12 +120,9 @@ while true; do
do_install_ui_helper
;;
7)
advanced_uninstall
;;
8)
do_install_new_quickstart
;;
9)
8)
recovery
;;
q | Q)

View File

@@ -146,7 +146,6 @@ while true; do
echo " 4. 安装文件管理器"
light_magenta " 5. 隐藏首页非必要UI元素"
light_magenta " 6. 安装个性化UI辅助插件(by VMatrices)"
light_magenta " 7. 安装高级卸载插件"
echo
echo " Q. 退出本程序"
echo
@@ -179,9 +178,6 @@ while true; do
6)
do_install_ui_helper
;;
7)
advanced_uninstall
;;
q | Q)
echo "退出"
exit 0

View File

@@ -241,8 +241,7 @@ while true; do
light_magenta "11. MT3000一键更换分区"
light_magenta "12. 隐藏首页非必要UI元素"
light_magenta "13. 安装个性化UI辅助插件(by VMatrices)"
light_magenta "14. 安装高级卸载插件"
light_magenta "15. 更新脚本"
light_magenta "14. 更新脚本"
echo
echo " Q. 退出本程序"
echo
@@ -297,9 +296,6 @@ while true; do
do_install_ui_helper
;;
14)
advanced_uninstall
;;
15)
update_myself
;;
q | Q)

View File

@@ -337,31 +337,6 @@ do_install_ui_helper() {
opkg install "$ipk_file"
}
# ============================================================================
# 高级卸载插件
# ============================================================================
advanced_uninstall() {
opkg update >/dev/null 2>&1 && opkg install bash || echo "bash 已存在"
if ! opkg list-installed | grep -q "luci-lua-runtime"; then
echo "📥 正在下载 luci-lua-runtime 依赖..."
wget -O /tmp/luci-lua-runtime.ipk "https://repo.istoreos.com/repo/all/compat/luci-lua-runtime_0.00-r0_all.ipk" || {
echo "❌ 下载 luci-lua-runtime 失败"
return 1
}
opkg install /tmp/luci-lua-runtime.ipk || {
echo "❌ 安装 luci-lua-runtime 失败"
return 1
}
rm -f /tmp/luci-lua-runtime.ipk
echo "✅ luci-lua-runtime 安装成功"
fi
echo "📥 正在下载高级卸载插件..."
wget -O /tmp/advanced_uninstall.run $HTTP_HOST/uninstall/luci-app-uninstall.run
sh /tmp/advanced_uninstall.run
}
# ============================================================================
# 恢复出厂设置
# ============================================================================

View File

@@ -109,9 +109,7 @@ while true; do
echo
light_magenta " 6. 安装个性化UI辅助插件(by VMatrices)"
echo
light_magenta " 7. 安装高级卸载插件"
echo
light_magenta " 8. 恢复出厂设置/重置路由器"
light_magenta " 7. 恢复出厂设置/重置路由器"
echo
echo " Q. 退出本程序"
echo
@@ -137,9 +135,6 @@ while true; do
do_install_ui_helper
;;
7)
advanced_uninstall
;;
8)
recovery
;;
q | Q)

View File

@@ -109,9 +109,7 @@ while true; do
echo
light_magenta " 6. 安装个性化UI辅助插件(by VMatrices)"
echo
light_magenta " 7. 安装高级卸载插件"
echo
light_magenta " 8. 恢复出厂设置/重置路由器"
light_magenta " 7. 恢复出厂设置/重置路由器"
echo
echo " Q. 退出本程序"
echo
@@ -137,9 +135,6 @@ while true; do
do_install_ui_helper
;;
7)
advanced_uninstall
;;
8)
recovery
;;
q | Q)

View File

@@ -107,9 +107,7 @@ while true; do
echo
light_magenta " 5. 安装个性化UI辅助插件(by VMatrices)"
echo
light_magenta " 6. 安装高级卸载插件"
echo
light_magenta " 7. 恢复出厂设置/重置路由器"
light_magenta " 6. 恢复出厂设置/重置路由器"
echo
echo " Q. 退出本程序"
echo
@@ -132,9 +130,6 @@ while true; do
do_install_ui_helper
;;
6)
advanced_uninstall
;;
7)
recovery
;;
q | Q)