git.cweiske.de
/
enigma2.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
ea59325
)
Network.py: change network interface description name to old state. (LAN connection...
author
acid-burn
<acid-burn@opendreambox.org>
Mon, 9 May 2011 09:03:39 +0000
(11:03 +0200)
committer
acid-burn
<acid-burn@opendreambox.org>
Mon, 9 May 2011 09:03:39 +0000
(11:03 +0200)
lib/python/Components/Network.py
patch
|
blob
|
history
diff --git
a/lib/python/Components/Network.py
b/lib/python/Components/Network.py
index eee5a70280dbe45ec2b40ce46b1a8d53b756b37c..32b8bdbe76dcb89f68d9c1eb152e2aadbbb7a64c 100755
(executable)
--- 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:
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 = _("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:
else:
if iface not in self.lan_interfaces:
- self.lan_interfaces.append(iface)
name = _("LAN connection")
if len(self.lan_interfaces):
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):
return name
def getFriendlyAdapterDescription(self, iface):