From 4641c3736c6c019ad3f9d74cfbf2b68e7d61791b Mon Sep 17 00:00:00 2001 From: Ing Date: Thu, 6 Mar 2025 11:49:15 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20=E6=9B=B4=E6=96=B0RR?= =?UTF-8?q?=E5=90=8E=20=E6=97=A0=E7=BD=91=E7=BB=9C=E7=BC=96=E8=AF=91?= =?UTF-8?q?=E5=A4=B1=E8=B4=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- files/initrd/opt/rr/boot.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/files/initrd/opt/rr/boot.sh b/files/initrd/opt/rr/boot.sh index 0168c733..a00dc2c0 100755 --- a/files/initrd/opt/rr/boot.sh +++ b/files/initrd/opt/rr/boot.sh @@ -35,12 +35,13 @@ printf "\033[1;33m%*s\033[0m\n" $(((${#BTITLE} + ${COLUMNS}) / 2)) "${BTITLE}" if [ -f ${PART1_PATH}/.upgraded ]; then MODEL="$(readConfigKey "model" "${USER_CONFIG_FILE}")" - if [ -n "${MODEL}" ]; then + PLATFORM="$(readConfigKey "platform" "${USER_CONFIG_FILE}")" + if [ -n "${MODEL}" ] && [ -n "${PLATFORM}" ]; then printf "\033[1;43m%s\033[0m\n" "$(TEXT "Reconfigure after upgrade ...")" PRODUCTVER="$(readConfigKey "productver" "${USER_CONFIG_FILE}")" PATURL="$(readConfigKey "paturl" "${USER_CONFIG_FILE}")" PATSUM="$(readConfigKey "patsum" "${USER_CONFIG_FILE}")" - ./menu.sh modelMenu "${MODEL}" || { + ./menu.sh modelMenu "${MODEL}" "${PLATFORM}" || { echo -e "$(TEXT "Reconfiguration failed!")" exit 1 }