$this->config = $config;
}
+ function parseEthtool($interface)
+ {
+ // im not going to enjoy this, not one little bit
+ }
+
function findHardware()
{
}
fclose($fp);
}
+
+ // find hardware
if(file_exists("/sys/class/net/$fname/mtu")) $this->config["hardware"]["netdev"][$fname]["mtu"] = trim(file_get_contents("/sys/class/net/$fname/mtu"));
if(file_exists("/sys/class/net/$fname/address")) $this->config["hardware"]["netdev"][$fname]["hwaddress"] = trim(file_get_contents("/sys/class/net/$fname/address"));
if(file_exists("/sys/class/net/$fname/bonding")) $this->config["hardware"]["netdev"][$fname]["bonding"] = true;
}
echo "process command ".$expl[0]."\n";
+ // TODO: when dealing with descriptions, we need to deal with a null description (i.e. delete the description)
// find a description
$description = null;
$hasdescription = false;
$expl = $expl_r;
}
+ // this is a special case for debugging
+ if($expl[0] == "hold") {
+ error_log("command is $line");
+ return 0;
+ }
+
$delete = false;
// check for delete on the line
if($expl[0] == "delete") {