From 92f07677bfcd869302d7a0385206cb85f0f92bf6 Mon Sep 17 00:00:00 2001 From: MilhouseVH Date: Thu, 9 Jun 2016 17:00:44 +0100 Subject: [PATCH] RPi: Add a cleanup step --- packages/tools/bcm2835-bootloader/scripts/update.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/tools/bcm2835-bootloader/scripts/update.sh b/packages/tools/bcm2835-bootloader/scripts/update.sh index d09d33c2f6d..4af59eea22b 100755 --- a/packages/tools/bcm2835-bootloader/scripts/update.sh +++ b/packages/tools/bcm2835-bootloader/scripts/update.sh @@ -24,6 +24,9 @@ # mount $BOOT_ROOT r/w mount -o remount,rw $BOOT_ROOT +# Something has gone horribly wrong... clean up + [ -s $BOOT_ROOT/overlays ] || rm -fr $BOOT_ROOT/overlays $BOOT_ROOT/FSCK*.REC + # update bootloader files cp -p $SYSTEM_ROOT/usr/share/bootloader/LICENCE* $BOOT_ROOT cp -p $SYSTEM_ROOT/usr/share/bootloader/bootcode.bin $BOOT_ROOT