RPi: Add a cleanup step

This commit is contained in:
MilhouseVH 2016-06-09 17:00:44 +01:00
parent f2e85dfc12
commit 92f07677bf

View File

@ -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