diff options
Diffstat (limited to 'bootloader')
-rw-r--r-- | bootloader/main.c | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/bootloader/main.c b/bootloader/main.c index 7c2b1257a9..77866573e9 100644 --- a/bootloader/main.c +++ b/bootloader/main.c @@ -508,10 +508,20 @@ void main(void) eeprom_settings_store(); #endif - if(i == 0) + if (i == 0) start_firmware(); - start_iriver_fw(); + if (detect_flashed_rockbox()) + { + printf("No firmware found on disk"); + printf("Powering off..."); + lcd_update(); + ata_sleep(); + sleep(HZ*4); + power_off(); + } + else + start_iriver_fw(); #endif /* IAUDIO_X5 */ } |