From c66c1fe54f1fa80ffeea4e28cc2ea2c2117b777c Mon Sep 17 00:00:00 2001 From: Niklas Date: Mon, 26 Sep 2011 19:41:37 +0200 Subject: added a new function for manual configuration of an interface including a function which writes a resolv.conf --- LogReceiver/networkdiscovery.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'LogReceiver/networkdiscovery.cpp') diff --git a/LogReceiver/networkdiscovery.cpp b/LogReceiver/networkdiscovery.cpp index 303ffe7..beca24f 100644 --- a/LogReceiver/networkdiscovery.cpp +++ b/LogReceiver/networkdiscovery.cpp @@ -96,6 +96,9 @@ QList NetworkDiscovery::getListOfNetworkInterfaces() { || checkBlackList(nI.humanReadableName())) { continue; } + if(!(nI.flags() & QNetworkInterface::IsUp)) { + networkManager.bringInterfaceUpDown(nI.humanReadableName(), true); + } if (!checkCarrierState(nI.humanReadableName())) { continue; } -- cgit v1.2.3-55-g7522