Changeset 23925


Ignore:
Timestamp:
09/27/13 16:00:16 (10 years ago)
Author:
obi
Message:

[titan] system_update.h start tmp update in /var/backup if exist

File:
1 edited

Legend:

Unmodified
Added
Removed
  • titan/titan/system_update.h

    r23922 r23925  
    4646                skinname = "systemupdate_flash_tmp_menu";
    4747                filemask = ostrcat(filemask, "*.img", 1, 0);
    48                 filepath = ostrcat(filepath, "/tmp", 1, 0);
     48                if(file_exist("/var/backup"))
     49                        filepath = ostrcat(filepath, "/var/backup", 1, 0);
     50                else
     51                        filepath = ostrcat(filepath, "/tmp", 1, 0);             
    4952                type = ostrcat(type, "tmp", 1, 0);
    5053        }
     
    6972                skinname = "systemupdate_usb_tmp_menu";
    7073                filemask = ostrcat(filemask, "*.tar.gz", 1, 0);
    71                 filepath = ostrcat(filepath, "/tmp", 1, 0);
     74                if(file_exist("/var/backup"))
     75                        filepath = ostrcat(filepath, "/var/backup", 1, 0);
     76                else
     77                        filepath = ostrcat(filepath, "/tmp", 1, 0);     
    7278                type = ostrcat(type, "tmp", 1, 0);
    7379        }
Note: See TracChangeset for help on using the changeset viewer.