|
Lines 347-355
Storage::detectArch()
Link Here
|
| 347 |
line = extractNthWord( 2, line ); |
347 |
line = extractNthWord( 2, line ); |
| 348 |
y2milestone( "line:%s", line.c_str() ); |
348 |
y2milestone( "line:%s", line.c_str() ); |
| 349 |
is_ppc_mac = line.find( "PowerMac" )==0 || line.find( "PowerBook" )==0; |
349 |
is_ppc_mac = line.find( "PowerMac" )==0 || line.find( "PowerBook" )==0; |
|
|
350 |
if( is_ppc_mac == 0) |
| 351 |
{ |
| 352 |
line = cpu[l]; |
| 353 |
line = extractNthWord( 3, line ); |
| 354 |
y2milestone( "line:%s", line.c_str() ); |
| 355 |
is_ppc_pegasos = line.find( "Pegasos" )==0; |
| 356 |
} |
| 350 |
} |
357 |
} |
| 351 |
} |
358 |
} |
| 352 |
y2milestone( "Arch:%s IsPPCMac:%d", proc_arch.c_str(), is_ppc_mac ); |
359 |
y2milestone( "Arch:%s IsPPCMac:%d IsPPCPegasos:%d", proc_arch.c_str(), is_ppc_mac, is_ppc_pegasos ); |
| 353 |
} |
360 |
} |
| 354 |
|
361 |
|
| 355 |
void |
362 |
void |
|
Lines 938-943
void Storage::setDetectMountedVolumes( b
Link Here
|
| 938 |
string Storage::proc_arch; |
945 |
string Storage::proc_arch; |
| 939 |
string Storage::sysfs_dir = "/sys/block"; |
946 |
string Storage::sysfs_dir = "/sys/block"; |
| 940 |
bool Storage::is_ppc_mac = false; |
947 |
bool Storage::is_ppc_mac = false; |
|
|
948 |
bool Storage::is_ppc_pegasos = false; |
| 941 |
|
949 |
|
| 942 |
|
950 |
|
| 943 |
namespace storage |
951 |
namespace storage |