QwErTz
public text v1 · immutable # Check Features
$cpu_chk_features = `sysctl machdep.cpu.features`;
$cpu_chk_features = substr($cpu_chk_features, 22);
chomp $cpu_chk_features;
@cpu_features = split(' ',$cpu_chk_features);
foreach $a (@cpu_features)
{
if($a == "PAE")
{
$cpu_type = $cpu_type . "/PAE"
}
if($a == "VMX")
{
$cpu_type = $cpu_type . "/VMX"
}
if($a == "EST")
{
$cpu_type = $cpu_type . "/EST"
}
if($a == "XD")
{
$cpu_type = $cpu_type . "/XD"
}
}