diff --git a/be3600.sh b/be3600.sh index f9a0459..9cc5857 100644 --- a/be3600.sh +++ b/be3600.sh @@ -45,11 +45,31 @@ do_quickstart() { do_install_new_quickstart } +# ============================================================================ +# 一键执行函数 +# ============================================================================ +run_quick_install() { + add_arch_64bit + install_istore_os_style + setup_base_init + do_istore + do_quickstart + advanced_uninstall + do_install_ui_helper + show_completion_message +} + # ============================================================================ # 主程序 # ============================================================================ load_common_lib +# 检查是否传入 --quick 参数 +if [ "$1" = "--quick" ] || [ "$1" = "-q" ]; then + run_quick_install + exit 0 +fi + while true; do clear gl_name=$(get_router_name) @@ -86,14 +106,7 @@ while true; do case $choice in 1) - add_arch_64bit - install_istore_os_style - setup_base_init - do_istore - do_quickstart - advanced_uninstall - do_install_ui_helper - show_completion_message + run_quick_install ;; 2) do_install_argon_skin diff --git a/be6500.sh b/be6500.sh index 5115e2a..8bda4c1 100644 --- a/be6500.sh +++ b/be6500.sh @@ -45,11 +45,31 @@ do_quickstart() { do_install_new_quickstart } +# ============================================================================ +# 一键执行函数 +# ============================================================================ +run_quick_install() { + add_arch_64bit + install_istore_os_style + setup_base_init + do_istore + do_quickstart + advanced_uninstall + do_install_ui_helper + show_completion_message +} + # ============================================================================ # 主程序 # ============================================================================ load_common_lib +# 检查是否传入 --quick 参数 +if [ "$1" = "--quick" ] || [ "$1" = "-q" ]; then + run_quick_install + exit 0 +fi + while true; do clear gl_name=$(get_router_name) @@ -86,14 +106,7 @@ while true; do case $choice in 1) - add_arch_64bit - install_istore_os_style - setup_base_init - do_istore - do_quickstart - advanced_uninstall - do_install_ui_helper - show_completion_message + run_quick_install ;; 2) do_install_argon_skin diff --git a/be9300.sh b/be9300.sh index 5aa4cc4..bbd9ee1 100644 --- a/be9300.sh +++ b/be9300.sh @@ -45,11 +45,31 @@ do_quickstart() { do_install_new_quickstart } +# ============================================================================ +# 一键执行函数 +# ============================================================================ +run_quick_install() { + add_arch_64bit + install_istore_os_style + setup_base_init + do_istore + do_quickstart + advanced_uninstall + do_install_ui_helper + show_completion_message +} + # ============================================================================ # 主程序 # ============================================================================ load_common_lib +# 检查是否传入 --quick 参数 +if [ "$1" = "--quick" ] || [ "$1" = "-q" ]; then + run_quick_install + exit 0 +fi + while true; do clear gl_name=$(get_router_name) @@ -86,14 +106,7 @@ while true; do case $choice in 1) - add_arch_64bit - install_istore_os_style - setup_base_init - do_istore - do_quickstart - advanced_uninstall - do_install_ui_helper - show_completion_message + run_quick_install ;; 2) do_install_argon_skin diff --git a/gl-inet-op24.sh b/gl-inet-op24.sh index ed707ad..fe2f74e 100644 --- a/gl-inet-op24.sh +++ b/gl-inet-op24.sh @@ -96,11 +96,35 @@ do_install_filemanager() { echo "重新登录web页面,然后您可以访问: http://192.168.8.1/cgi-bin/luci/admin/services/linkease/file/?path=/root" } +# ============================================================================ +# 一键执行函数 +# ============================================================================ +run_quick_install() { + add_arch + change_opkg_source + if [[ "$gl_name" == *3000* ]]; then + setup_cpu_fans + fi + do_istore_generic + install_istore_os_style + update_luci_app_quickstart + setup_base_init + advanced_uninstall + do_install_ui_helper + show_completion_message +} + # ============================================================================ # 主程序 # ============================================================================ load_common_lib +# 检查是否传入 --quick 参数 +if [ "$1" = "--quick" ] || [ "$1" = "-q" ]; then + run_quick_install + exit 0 +fi + while true; do clear gl_name=$(get_router_name) @@ -132,18 +156,7 @@ while true; do case $choice in 1) - add_arch - change_opkg_source - if [[ "$gl_name" == *3000* ]]; then - setup_cpu_fans - fi - do_istore_generic - install_istore_os_style - update_luci_app_quickstart - setup_base_init - advanced_uninstall - do_install_ui_helper - show_completion_message + run_quick_install ;; 2) case "$gl_name" in diff --git a/gl-inet.sh b/gl-inet.sh index c3e29b1..35d276f 100755 --- a/gl-inet.sh +++ b/gl-inet.sh @@ -181,11 +181,35 @@ mt3000_overlay_changed() { sh mt3000.sh } +# ============================================================================ +# 一键执行函数 +# ============================================================================ +run_quick_install() { + add_arch + if [[ "$gl_name" == *3000* ]]; then + setup_cpu_fans + fi + recovery_opkg_settings + do_istore_generic + install_istore_os_style + update_luci_app_quickstart + setup_base_init + advanced_uninstall + do_install_ui_helper + show_completion_message +} + # ============================================================================ # 主程序 # ============================================================================ load_common_lib +# 检查是否传入 --quick 参数 +if [ "$1" = "--quick" ] || [ "$1" = "-q" ]; then + run_quick_install + exit 0 +fi + while true; do clear gl_name=$(get_router_name) @@ -228,18 +252,7 @@ while true; do case $choice in 1) - add_arch - if [[ "$gl_name" == *3000* ]]; then - setup_cpu_fans - fi - recovery_opkg_settings - do_istore_generic - install_istore_os_style - update_luci_app_quickstart - setup_base_init - advanced_uninstall - do_install_ui_helper - show_completion_message + run_quick_install ;; 2) add_custom_feed diff --git a/mt3600.sh b/mt3600.sh index fac4923..cabd0c7 100644 --- a/mt3600.sh +++ b/mt3600.sh @@ -65,11 +65,29 @@ do_install_ui_helper_silent() { opkg install "$ipk_file" } +# ============================================================================ +# 一键执行函数 +# ============================================================================ +run_quick_install() { + add_arch + install_istore_os_style + setup_base_init + do_istore + do_quickstart + show_completion_message +} + # ============================================================================ # 主程序 # ============================================================================ load_common_lib +# 检查是否传入 --quick 参数 +if [ "$1" = "--quick" ] || [ "$1" = "-q" ]; then + run_quick_install + exit 0 +fi + while true; do clear gl_name=$(get_router_name) @@ -103,12 +121,7 @@ while true; do case $choice in 1) - add_arch - install_istore_os_style - setup_base_init - do_istore - do_quickstart - show_completion_message + run_quick_install ;; 2) do_install_argon_skin diff --git a/mt5000.sh b/mt5000.sh index 6ab9de0..ffad546 100644 --- a/mt5000.sh +++ b/mt5000.sh @@ -65,11 +65,29 @@ do_install_ui_helper_silent() { opkg install "$ipk_file" } +# ============================================================================ +# 一键执行函数 +# ============================================================================ +run_quick_install() { + add_arch + install_istore_os_style + setup_base_init + do_istore + do_quickstart + show_completion_message +} + # ============================================================================ # 主程序 # ============================================================================ load_common_lib +# 检查是否传入 --quick 参数 +if [ "$1" = "--quick" ] || [ "$1" = "-q" ]; then + run_quick_install + exit 0 +fi + while true; do clear gl_name=$(get_router_name) @@ -103,12 +121,7 @@ while true; do case $choice in 1) - add_arch - install_istore_os_style - setup_base_init - do_istore - do_quickstart - show_completion_message + run_quick_install ;; 2) do_install_argon_skin diff --git a/mudi7.sh b/mudi7.sh index 74192bd..0cf67c9 100644 --- a/mudi7.sh +++ b/mudi7.sh @@ -65,11 +65,29 @@ do_install_ui_helper_silent() { opkg install "$ipk_file" } +# ============================================================================ +# 一键执行函数 +# ============================================================================ +run_quick_install() { + add_arch + install_istore_os_style + setup_base_init + do_istore + do_quickstart + show_completion_message +} + # ============================================================================ # 主程序 # ============================================================================ load_common_lib +# 检查是否传入 --quick 参数 +if [ "$1" = "--quick" ] || [ "$1" = "-q" ]; then + run_quick_install + exit 0 +fi + while true; do clear gl_name=$(get_router_name) @@ -101,12 +119,7 @@ while true; do case $choice in 1) - add_arch - install_istore_os_style - setup_base_init - do_istore - do_quickstart - show_completion_message + run_quick_install ;; 2) do_install_argon_skin