From 2bd3b834225a8b7aaf79b8114c958737411a8281 Mon Sep 17 00:00:00 2001 From: paulr Date: Wed, 5 Oct 2011 03:54:22 +1100 Subject: [PATCH] need to talk to ethtool - ug --- libcbfwr/config.php | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/libcbfwr/config.php b/libcbfwr/config.php index c0c43d1..2f6ce0b 100644 --- a/libcbfwr/config.php +++ b/libcbfwr/config.php @@ -41,6 +41,11 @@ class Config { $this->config = $config; } + function parseEthtool($interface) + { + // im not going to enjoy this, not one little bit + } + function findHardware() { @@ -63,6 +68,8 @@ class Config { } 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; -- 1.7.0.4