Changeset 25357


Ignore:
Timestamp:
12/23/13 16:37:19 (10 years ago)
Author:
obi
Message:

fix format

File:
1 edited

Legend:

Unmodified
Added
Removed
  • titan/titan/harddisk.h

    r25351 r25357  
    638638                                cmd = ostrcat(cmd , " large", 1, 0);
    639639
    640                         if(!file_exist("/mnt/swapextensions/logs"))
    641                                  mkdir("/mnt/swapextensions/logs", 777);
    642                
    643                         if(file_exist("/etc/.beta") && file_exist("/mnt/swapextensions/logs"))
    644                                 cmd = ostrcat(cmd, " > /mnt/swapextensions/logs/format_debug.log 2>&1", 1, 0);
     640                        if(checkbox("ATEMIO520") == 1 || checkbox("ATEMIO530") == 1 || checkbox("UFS912") == 1 || checkbox("ATEMIO7600") == 1)
     641                        {
     642                                if(!file_exist("/mnt/logs"))
     643                                         mkdir("/mnt/logs", 777);
     644                       
     645                                if(file_exist("/etc/.beta") && file_exist("/mnt/logs"))
     646                                        cmd = ostrcat(cmd, " > /mnt/logs/format_debug.log 2>&1", 1, 0);
     647                        }
     648                        else if(file_exist("/var/swap"))
     649                        {
     650                                if(!file_exist("/var/swap/logs"))
     651                                         mkdir("/var/swap/logs", 777);
     652                       
     653                                if(file_exist("/etc/.beta") && file_exist("/var/swap/logs"))
     654                                        cmd = ostrcat(cmd, " > /var/swap/logs/format_debug.log 2>&1", 1, 0);           
     655                        }
    645656
    646657                        debug(80, "fdisk create cmd: %s", cmd);
Note: See TracChangeset for help on using the changeset viewer.