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:
@@ -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
|
||||
}
|
||||
|
||||
# ============================================================================
|
||||
# 一键执行函数
|
||||
# ============================================================================
|
||||
|
||||
Reference in New Issue
Block a user