trunk 20080912
[gitenigma.git] / src / wizard_fpupdate.cpp
blob06ee50e640819099e1cd06aceaf5bfd2dc055740
1 #include <wizard_fpupdate.h>
2 #include <lib/system/init.h>
3 #include <lib/system/init_num.h>
4 #include <lib/system/dmfp.h>
5 #include <lib/gui/emessage.h>
7 int eWizardFPUpdate::run()
9 if (eDreamboxFP::isUpgradeAvailable())
12 eMessageBox msg(
13 _("New Software for the frontprocessor is avail.\n"
14 "Your Dreambox must upgrade now!\n"
15 "DO NOT TURN OFF THE POWER DURING UPDATE !!!."),
16 _("New software avail"),
17 eMessageBox::btOK|eMessageBox::iconInfo);
18 msg.show();
19 msg.exec();
20 msg.hide();
23 eMessageBox msg(
24 _("Upgrading frontprocessor...\n"
25 "DO NOT TURN OFF THE POWER!\n"
26 "THE DREAMBOX WILL AUTOMATICALLY REBOOT!\n"),
27 _("Upgrade in process..."), eMessageBox::iconWarning);
28 msg.show();
29 /* in this case, this is really required - doUpgrade does CLI */
30 sleep(1);
31 eDreamboxFP::doUpgrade(0xd15ea5e);
34 return 0;
37 eAutoInitP0<eWizardFPUpdate> init_eWizardFPUpdate(eAutoInitNumbers::wizard+1, "wizard: fpudate");