Fixed ifconfig command typo

This commit is contained in:
Shoghi Cervantes 2014-09-21 00:53:16 +02:00
parent 8dbe834dc3
commit 3d870629f2

View File

@ -75,7 +75,7 @@ class Utils{
$machine .= implode(" ", $matches[1]); //Mac Addresses
}
}elseif($os === "linux"){
@exec("ifconfig /ALL", $mac);
@exec("ifconfig", $mac);
$mac = implode("\n", $mac);
if(preg_match_all("#HWaddr[ \t]{1,}([0-9a-f:]{17})#", $mac, $matches)){
foreach($matches[1] as $i => $v){
@ -389,4 +389,4 @@ class Utils{
return $ret;
}
}
}