aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Plugins
diff options
context:
space:
mode:
authoracid-burn <acid-burn@opendreambox.org>2010-02-11 14:15:33 +0100
committeracid-burn <acid-burn@opendreambox.org>2010-02-11 14:15:33 +0100
commit30eb05e6ba834df51db97db306bfb1cab94c9b20 (patch)
tree25271048bda15b594e40938f5cef47893f202e6e /lib/python/Plugins
parente50f482422a4d0f1d08f0970dc7988e2e3ebc78e (diff)
downloadenigma2-30eb05e6ba834df51db97db306bfb1cab94c9b20.tar.gz
enigma2-30eb05e6ba834df51db97db306bfb1cab94c9b20.zip
NetworkWizard/NetworkWizard.py: * fix automatic interface selection if only one network adapter is available in some situations. refs #218
Diffstat (limited to 'lib/python/Plugins')
-rwxr-xr-xlib/python/Plugins/SystemPlugins/NetworkWizard/NetworkWizard.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/python/Plugins/SystemPlugins/NetworkWizard/NetworkWizard.py b/lib/python/Plugins/SystemPlugins/NetworkWizard/NetworkWizard.py
index 150dba9d..a8b34acd 100755
--- a/lib/python/Plugins/SystemPlugins/NetworkWizard/NetworkWizard.py
+++ b/lib/python/Plugins/SystemPlugins/NetworkWizard/NetworkWizard.py
@@ -104,6 +104,9 @@ class NetworkWizard(WizardLanguage, Rc):
self.rescanTimer.stop()
self.Adapterlist = iNetwork.getAdapterList()
self.InstalledInterfaceCount = len(self.Adapterlist)
+ if self.Adapterlist is not None:
+ if self.InstalledInterfaceCount == 1 and self.selectedInterface is None:
+ self.selectedInterface = self.Adapterlist[0]
self.originalAth0State = iNetwork.getAdapterAttribute('ath0', 'up')
self.originalEth0State = iNetwork.getAdapterAttribute('eth0', 'up')
self.originalWlan0State = iNetwork.getAdapterAttribute('wlan0', 'up')