feat: 添加 --quick 参数支持一键安装模式
- 所有机型脚本支持 --quick/-q 参数 - 新增 run_quick_install() 函数封装选项1逻辑 - 无重复代码,维护方便 - 用户可直接执行一键安装而无需菜单交互
This commit is contained in:
29
be9300.sh
29
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
|
||||
|
||||
Reference in New Issue
Block a user