diff options
| author | acid-burn <acid-burn@opendreambox.org> | 2010-02-11 14:15:33 +0100 |
|---|---|---|
| committer | acid-burn <acid-burn@opendreambox.org> | 2010-02-11 14:33:47 +0100 |
| commit | 718bb417bc409a09b2989a6e51eeaa4d68d6208a (patch) | |
| tree | 4f7bd2637598d2f6e877cdf9cd4a454d68190406 /lib | |
| parent | f87f40e3d7bade8c5dbd12d9ccc7f1b2417fff04 (diff) | |
| download | enigma2-718bb417bc409a09b2989a6e51eeaa4d68d6208a.tar.gz enigma2-718bb417bc409a09b2989a6e51eeaa4d68d6208a.zip | |
NetworkWizard/NetworkWizard.py: * fix automatic interface selection if only one network adapter is available in some situations. refs #218
Diffstat (limited to 'lib')
| -rwxr-xr-x | lib/python/Plugins/SystemPlugins/NetworkWizard/NetworkWizard.py | 3 |
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 018ae876..6096ca8b 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') |
