From e72dce9dc6518aa1e3339ace20444cd17f37eb9a Mon Sep 17 00:00:00 2001 From: wukongdaily <2666180@gmail.com> Date: Sat, 11 Jul 2026 18:19:13 +0800 Subject: [PATCH] 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 --- gl-inet-op25.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/gl-inet-op25.sh b/gl-inet-op25.sh index 0d93551..a34480b 100644 --- a/gl-inet-op25.sh +++ b/gl-inet-op25.sh @@ -34,6 +34,7 @@ do_install_istore() { wget -O /tmp/istore.run "$HTTP_HOST/theme/25-luci-app-store.run" sh /tmp/istore.run echo "iStore商店安装完成" + do_install_needs } # 安装首页和网络向导 @@ -65,6 +66,11 @@ do_install_ui_helper_apk() { echo "UI助手APK安装完成" } +do_install_needs() { + is-opkg install luci-i18n-ttyd-zh-cn + is-opkg install app-meta-sftp +} + # ============================================================================ # 一键执行函数 # ============================================================================