refactor(gl-inet-op25): extract dependency installation to separate function

extract installing luci-i18n-ttyd-zh-cn and app-meta-sftp into do_install_needs function, call it after istore installation
This commit is contained in:
2026-07-11 18:19:13 +08:00
parent f567e55330
commit e72dce9dc6

View File

@@ -34,6 +34,7 @@ do_install_istore() {
wget -O /tmp/istore.run "$HTTP_HOST/theme/25-luci-app-store.run" wget -O /tmp/istore.run "$HTTP_HOST/theme/25-luci-app-store.run"
sh /tmp/istore.run sh /tmp/istore.run
echo "iStore商店安装完成" echo "iStore商店安装完成"
do_install_needs
} }
# 安装首页和网络向导 # 安装首页和网络向导
@@ -65,6 +66,11 @@ do_install_ui_helper_apk() {
echo "UI助手APK安装完成" echo "UI助手APK安装完成"
} }
do_install_needs() {
is-opkg install luci-i18n-ttyd-zh-cn
is-opkg install app-meta-sftp
}
# ============================================================================ # ============================================================================
# 一键执行函数 # 一键执行函数
# ============================================================================ # ============================================================================