From 820f0f7a7bb3fe6dc4e0d21c64eeb880366568b6 Mon Sep 17 00:00:00 2001 From: Ing Date: Fri, 12 Jan 2024 11:18:13 +0800 Subject: [PATCH] Clean old pat file --- files/initrd/opt/rr/ramdisk-patch.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/files/initrd/opt/rr/ramdisk-patch.sh b/files/initrd/opt/rr/ramdisk-patch.sh index 311e8bd6..f60cd1d4 100755 --- a/files/initrd/opt/rr/ramdisk-patch.sh +++ b/files/initrd/opt/rr/ramdisk-patch.sh @@ -49,6 +49,8 @@ if [ -n "${PRODUCTVER}" -a -n "${BUILDNUM}" -a -n "${SMALLNUM}" ] && echo -n "Patching Ramdisk." PATURL="" PATSUM="" + # Clean old pat file + rm -f "${PART3_PATH}/dl/${MODEL}-${PRODUCTVER}.pat" 2>/dev/null || true fi # Update new buildnumber PRODUCTVER=${majorversion}.${minorversion}