X-Git-Url: http://git.pjr.cc/?p=CBFWR.git;a=blobdiff_plain;f=libcbfwr%2Fconfig.php;h=3720d6a30021a3e02c983a872265b1b7b9fa9b7a;hp=3c7a54fb5a91cd84042b613254ab0123d6ab7058;hb=fa4d5e8e3250b981ee563f21df08c729dd3d4c57;hpb=c184472f1c4206a3bcd76ff8e9d27dc2eb1a4c4c diff --git a/libcbfwr/config.php b/libcbfwr/config.php index 3c7a54f..3720d6a 100644 --- a/libcbfwr/config.php +++ b/libcbfwr/config.php @@ -63,6 +63,7 @@ class Config { } fclose($fp); } + if(file_exists("/sys/class/net/$fname/mtu")) $this->config["hardware"]["netdev"][$fname]["mtu"] = file_get_contents("/sys/class/net/$fname/mtu"); if(file_exists("/sys/class/net/$fname/address")) $this->config["hardware"]["netdev"][$fname]["hwaddress"] = file_get_contents("/sys/class/net/$fname/address"); if(file_exists("/sys/class/net/$fname/bonding")) $this->config["hardware"]["netdev"][$fname]["bonding"] = true; if(file_exists("/sys/class/net/$fname/bridge")) $this->config["hardware"]["netdev"][$fname]["bridge"] = true;