aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoracid-burn <acid-burn@opendreambox.org>2011-05-09 11:03:39 +0200
committeracid-burn <acid-burn@opendreambox.org>2011-05-09 11:03:39 +0200
commitbaedb13351c92deaf80c2b1bc012054c8cc69bdc (patch)
tree930ae43ffbfb2b33491df12cec83a393f8242211
parentea593259b5e8ad4758992c2bbb5dd1a83dd71a04 (diff)
downloadenigma2-baedb13351c92deaf80c2b1bc012054c8cc69bdc.tar.gz
enigma2-baedb13351c92deaf80c2b1bc012054c8cc69bdc.zip
Network.py: change network interface description name to old state. (LAN connection 1 -> Lan connection). refs #725
-rwxr-xr-xlib/python/Components/Network.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/python/Components/Network.py b/lib/python/Components/Network.py
index eee5a702..32b8bdbe 100755
--- a/lib/python/Components/Network.py
+++ b/lib/python/Components/Network.py
@@ -274,16 +274,16 @@ class Network:
name = None
if self.isWirelessInterface(iface):
if iface not in self.wlan_interfaces:
- self.wlan_interfaces.append(iface)
name = _("WLAN connection")
if len(self.wlan_interfaces):
- name += " " + str(len(self.wlan_interfaces))
+ name += " " + str(len(self.wlan_interfaces)+1)
+ self.wlan_interfaces.append(iface)
else:
if iface not in self.lan_interfaces:
- self.lan_interfaces.append(iface)
name = _("LAN connection")
if len(self.lan_interfaces):
- name += " " + str(len(self.lan_interfaces))
+ name += " " + str(len(self.lan_interfaces)+1)
+ self.lan_interfaces.append(iface)
return name
def getFriendlyAdapterDescription(self, iface):