From a296c95dbd9896537f9607bd5856a03ef971f81e Mon Sep 17 00:00:00 2001 From: Seth Mos Date: Tue, 10 Mar 2009 06:59:14 +0100 Subject: Show dmesg interface names when first configuring the network --- etc/inc/util.inc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'etc/inc/util.inc') diff --git a/etc/inc/util.inc b/etc/inc/util.inc index dd6c517..c7f0293 100644 --- a/etc/inc/util.inc +++ b/etc/inc/util.inc @@ -416,6 +416,10 @@ function get_interface_list($mode = "active", $keyby = "physical", $vfaces = "") if($friendly != "") { $toput['friendly'] = $friendly; } + $dmesg_arr = array(); + exec("/sbin/dmesg |grep $ifname | head -n1", $dmesg_arr); + preg_match_all("/<(.*?)>/i", $dmesg_arr[0], $dmesg); + $toput['dmesg'] = $dmesg[1][0]; $iflist[$ifname] = $toput; break; case "friendly": -- cgit v1.1