Changeset 23753
- Timestamp:
- 09/15/13 12:17:16 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
titan/titan/harddisk.h
r23752 r23753 889 889 if(status.standby == 0 && newnode->partition == 1 && ostrstr(newnode->device, "1") != NULL) 890 890 { 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; 892 892 int newdev = 1; 893 893 894 894 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) 896 897 { 897 898 backup = ostrcat(tmpstr, "/backup", 0, 0); … … 906 907 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); 907 908 908 tmpstr = ostrcat(tmpstr, "/.titandev", 0, 0);909 writesys(tmpstr, "titan", 1);909 writesys(checkfile, "titan", 1); 910 sync(); 910 911 } 911 912 free(tmpstr); tmpstr = NULL; … … 914 915 free(swapextensions); swapextensions = NULL; 915 916 free(swapfile); swapfile = NULL; 917 free(checkfile); checkfile = NULL; 916 918 } 917 919
Note: See TracChangeset
for help on using the changeset viewer.