fix: File support

This commit is contained in:
Kroese 2023-12-06 05:56:25 +01:00 committed by GitHub
parent 143a2151fb
commit b1d53b42ca

View File

@ -301,7 +301,12 @@ rm -rf "$MOUNT"
echo "$BASE" > "$STORAGE"/dsm.ver
if [[ "$URL" == "file://${STORAGE}/${BASE}.pat" ]]; then
rm -f "$PAT"
else
mv -f "$PAT" "$STORAGE"/"$BASE".pat
fi
mv -f "$BOOT" "$STORAGE"/"$BASE".boot.img
mv -f "$SYSTEM" "$STORAGE"/"$BASE".system.img