From c20ee706135070751f4a33488a2e15768ea282ff Mon Sep 17 00:00:00 2001 From: Albrecht Lohofener Date: Tue, 26 Nov 2024 22:16:51 +0100 Subject: [PATCH] Revert commented out code for testing proposes --- src/migrate_openwrt_rootfs.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/migrate_openwrt_rootfs.sh b/src/migrate_openwrt_rootfs.sh index 57fcf32..17dac51 100644 --- a/src/migrate_openwrt_rootfs.sh +++ b/src/migrate_openwrt_rootfs.sh @@ -94,12 +94,12 @@ if [ -f /storage/old_version ]; then # Delete temporary OpenWrt image rm /tmp/squashfs-combined-tmp.img - # # Finally remove old squashfs-combined and old files - # rm /storage/$OLD_SQUASHFS_COMBINED - # rm /storage/old_version - # if [ -f storage/config-`basename $OLD_SQUASHFS_COMBINED.img`.tar.gz ]; then - # rm /storage/config-`basename $OLD_SQUASHFS_COMBINED.img`.tar.gz - # fi + # Finally remove old squashfs-combined and old files + rm /storage/$OLD_SQUASHFS_COMBINED + rm /storage/old_version + if [ -f storage/config-`basename $OLD_SQUASHFS_COMBINED.img`.tar.gz ]; then + rm /storage/config-`basename $OLD_SQUASHFS_COMBINED.img`.tar.gz + fi else info "squashfs-combined-${OPENWRT_IMAGE_ID}.img is up to date. Nothing to do." fi \ No newline at end of file