Changeset 38318 for titan/titan
- Timestamp:
- 08/24/16 14:43:26 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
titan/titan/system_update.h
r37047 r38318 5 5 { 6 6 debug(50, "(start) mode=%d", mode); 7 int rcret = 0 ;7 int rcret = 0, ret = 0; 8 8 9 9 status.hangtime = 99999; … … 246 246 debug(40, "update started cmd: %s", cmd); 247 247 status.sec = 0; //deactivate spinner 248 249 system(cmd); 250 //should only reached if system fails 251 textbox(_("Message"), _("Can't start system update\nSyntax Error on updatefile"), _("OK"), getrcconfigint("rcok", NULL), _("EXIT"), getrcconfigint("rcexit", NULL), NULL, 0, NULL, 0, 800, 200, 0, 0); 252 debug(40, "update error cmd: %s", cmd); 248 249 ret = checkshutdown(1); 250 if(ret == 0) 251 { 252 system(cmd); 253 //should only reached if system fails 254 textbox(_("Message"), _("Can't start system update\nSyntax Error on updatefile"), _("OK"), getrcconfigint("rcok", NULL), _("EXIT"), getrcconfigint("rcexit", NULL), NULL, 0, NULL, 0, 800, 200, 0, 0); 255 debug(40, "update error cmd: %s", cmd); 256 } 253 257 drawscreen(systemupdate, 0, 0); 254 258 getfilelist(systemupdate, filelistpath, filelist, node->filepath, node->filemask, 0, NULL);
Note: See TracChangeset
for help on using the changeset viewer.