Changeset 23753


Ignore:
Timestamp:
09/15/13 12:17:16 (11 years ago)
Author:
nit
Message:

[titan] fix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • titan/titan/harddisk.h

    r23752 r23753  
    889889        if(status.standby == 0 && newnode->partition == 1 && ostrstr(newnode->device, "1") != NULL)
    890890        {
    891                 char* tmpstr = NULL, *backup = NULL, *movie = NULL, *swapextensions = NULL, *swapfile = NULL;
     891                char* tmpstr = NULL, *backup = NULL, *movie = NULL, *swapextensions = NULL, *swapfile = NULL, *checkfile = NULL;
    892892                int newdev = 1;
    893893               
    894894                tmpstr = ostrcat("/media/autofs/", newnode->device, 0, 0);
    895                 if(file_exist(tmpstr) == 0)
     895                checkfile = ostrcat(tmpstr, "/.titandev", 0, 0);
     896                if(file_exist(checkfile) == 0)
    896897                {
    897898                        backup = ostrcat(tmpstr, "/backup", 0, 0);
     
    906907                                textbox("Message", _("Found new Stick/HDD.\nYou can configure it in Harddisk Menu."), _("OK"), getrcconfigint("rcok", NULL), _("EXIT"), getrcconfigint("rcexit", NULL), NULL, 0, NULL, 0, 600, 200, 15, 0);
    907908                       
    908                         tmpstr = ostrcat(tmpstr, "/.titandev", 0, 0);   
    909                         writesys(tmpstr, "titan", 1);
     909                        writesys(checkfile, "titan", 1);
     910                        sync();
    910911                }
    911912                free(tmpstr); tmpstr = NULL;
     
    914915                free(swapextensions); swapextensions = NULL;
    915916                free(swapfile); swapfile = NULL;                               
     917                free(checkfile); checkfile = NULL;                             
    916918        }
    917919       
Note: See TracChangeset for help on using the changeset viewer.