init: cleanup flash; execute real script not wrapper

This commit is contained in:
MilhouseVH
2019-09-08 17:56:25 +01:00
parent 4fcd61b8e2
commit 5d01dc4f1d
2 changed files with 15 additions and 6 deletions

View File

@@ -548,6 +548,17 @@ mount_flash() {
fi
}
cleanup_flash() {
progress "Cleaning up flash (if required)"
if [ -f /flash/pieeprom.upd ]; then
mount -o remount,rw /flash
rm -f /flash/pieeprom.bin /flash/pieeprom.upd
rm -f /flash/recovery.bin /flash/recovery.[0-9][0-9][0-9] /flash/RECOVERY.[0-9][0-9][0-9]
mount -o remount,ro /flash
fi
}
mount_storage() {
progress "Mounting storage"
@@ -1072,6 +1083,7 @@ for BOOT_STEP in \
set_consolefont \
check_disks \
mount_flash \
cleanup_flash \
update_bootmenu \
load_splash \
mount_storage \