From e6c78ce29377ad695eaf6afeba0842348dc87139 Mon Sep 17 00:00:00 2001 From: Ing Date: Mon, 17 Mar 2025 17:20:25 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=B8=8A=E4=BC=A0=20dts=20?= =?UTF-8?q?=E4=B8=AD=E7=9A=84=E6=9D=A1=E4=BB=B6=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- files/initrd/opt/rr/menu.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/initrd/opt/rr/menu.sh b/files/initrd/opt/rr/menu.sh index 95db5517..a4c7522d 100755 --- a/files/initrd/opt/rr/menu.sh +++ b/files/initrd/opt/rr/menu.sh @@ -1550,7 +1550,7 @@ function customDTS() { (cd "${TMP_UP_PATH}" && rz -be) || true USER_FILE="$(find "${TMP_UP_PATH}" -type f | head -1)" DTC_ERRLOG="/tmp/dtc.log" - [ -z "${USER_FILE}" ] && dtc -q -I dts -O dtb "${USER_FILE}" >"test.dtb" 2>"${DTC_ERRLOG}" + [ -n "${USER_FILE}" ] && dtc -q -I dts -O dtb "${USER_FILE}" >"test.dtb" 2>"${DTC_ERRLOG}" RET=$? if [ -z "${USER_FILE}" ] || [ ${RET} -ne 0 ]; then MSG="$(printf "%s\n%s:\n%s\n" "$(TEXT "Not a valid dts file, please try again!")" "$(TEXT "Error")" "$(cat "${DTC_ERRLOG}")")"