mirror of
https://github.com/LibreELEC/LibreELEC.tv
synced 2025-09-24 19:46:01 +07:00
init: cleanup flash; execute real script not wrapper
This commit is contained in:
@@ -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 \
|
||||
|
||||
Reference in New Issue
Block a user