fix(lib-common): 在高级卸载函数中添加bash依赖检查,自动安装bash或提示已存在

This commit is contained in:
2026-07-09 08:22:45 +08:00
parent 886dd0122b
commit 4f24f9d5fe

View File

@@ -341,6 +341,7 @@ do_install_ui_helper() {
# 高级卸载插件
# ============================================================================
advanced_uninstall() {
opkg update >/dev/null 2>&1 && opkg install bash || echo "bash 已存在"
echo "📥 正在下载高级卸载插件..."
wget -O /tmp/advanced_uninstall.run $HTTP_HOST/uninstall/luci-app-uninstall.run
sh /tmp/advanced_uninstall.run