summaryrefslogtreecommitdiff
path: root/bootloader/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'bootloader/main.c')
-rw-r--r--bootloader/main.c14
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)
508 eeprom_settings_store(); 508 eeprom_settings_store();
509#endif 509#endif
510 510
511 if(i == 0) 511 if (i == 0)
512 start_firmware(); 512 start_firmware();
513 513
514 start_iriver_fw(); 514 if (detect_flashed_rockbox())
515 {
516 printf("No firmware found on disk");
517 printf("Powering off...");
518 lcd_update();
519 ata_sleep();
520 sleep(HZ*4);
521 power_off();
522 }
523 else
524 start_iriver_fw();
515#endif /* IAUDIO_X5 */ 525#endif /* IAUDIO_X5 */
516} 526}
517 527