From 5b38e9f41a651f7a69be49abfcbbff57e2d6941c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=96=B5=E4=BA=8C?= <66155308+miaoermua@users.noreply.github.com> Date: Sat, 6 Jul 2024 18:06:50 +0800 Subject: [PATCH] Update sysup --- sysupgrade/amd64/sysup | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sysupgrade/amd64/sysup b/sysupgrade/amd64/sysup index 947bf1c..6ef0a42 100644 --- a/sysupgrade/amd64/sysup +++ b/sysupgrade/amd64/sysup @@ -28,15 +28,15 @@ AMD64_BIOS_SYSUP="https://github.com/miaoermua/CatWrt/releases/download/v23.8/Ca fi while true; do - read -p "Do you want to upgrade your system? /// 是否继续升级 (y/n): " confirm_upgrade + read -p "Do you want to upgrade your system? /// 是否继续升级 (1/2): " confirm_upgrade case $confirm_upgrade in - [Yy]* ) + 1) sysupgrade -v $firmware_url echo "系统升级完成正在重启" break;; - [Nn]* ) + 2) echo "System upgrade cancelled. /// 系统升级已取消" break;; - * ) echo "Please answer yes or no. /// 无效的输入,请输入 y 或 n";; + * ) echo "Please answer yes or no. /// 无效的输入,请输入 1 或 2";; esac done