[PC-BSD Commits] r2059 - pcbsd/trunk/NetworkManager

svn at pcbsd.org svn at pcbsd.org
Mon Jun 9 06:50:56 PDT 2008


Author: tim
Date: 2008-06-09 06:50:55 -0700 (Mon, 09 Jun 2008)
New Revision: 2059

Modified:
   pcbsd/trunk/NetworkManager/networkman.ui.h
Log:
Refactored for libpcbsd

Modified: pcbsd/trunk/NetworkManager/networkman.ui.h
===================================================================
--- pcbsd/trunk/NetworkManager/networkman.ui.h	2008-06-09 13:50:48 UTC (rev 2058)
+++ pcbsd/trunk/NetworkManager/networkman.ui.h	2008-06-09 13:50:55 UTC (rev 2059)
@@ -132,19 +132,8 @@
 
 QString NetworkMan::getMacForIdent( QString ident )
 {
-    
-    	QString command = "ifconfig " +ident + " | grep \"ether\"";
-	QString inputLine = getLineFromCommandOutput(command);
-	QString ether = "";
-	
-	if (inputLine != "" && inputLine.find("ether") != -1){
-		
-		ether = inputLine.remove(0, inputLine.find(" ") + 1);
-	
-	}
-	
-	return ether;
-
+   NetworkInterface ifr(ident);
+   return ifr.macAsString();
 }
 
 



More information about the Commits mailing list