diff options
| author | Andreas Monzner <andreas.monzner@multimedia-labs.de> | 2007-11-26 13:06:07 +0000 |
|---|---|---|
| committer | Andreas Monzner <andreas.monzner@multimedia-labs.de> | 2007-11-26 13:06:07 +0000 |
| commit | db545998ecbe01bfd3fd13a8b274da869958e0f5 (patch) | |
| tree | 6249e0ba582f099833901117971353f49efb6182 /lib/python/Components | |
| parent | 1c21fe13bb453d0f11c8a40461b3bfe7dba5cef1 (diff) | |
| download | enigma2-db545998ecbe01bfd3fd13a8b274da869958e0f5.tar.gz enigma2-db545998ecbe01bfd3fd13a8b274da869958e0f5.zip | |
only show network adapter list when more than one adapters are available
show friendly adapter name in network setup
Diffstat (limited to 'lib/python/Components')
| -rw-r--r-- | lib/python/Components/Network.py | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/lib/python/Components/Network.py b/lib/python/Components/Network.py index 6fbd9994..d10163fb 100644 --- a/lib/python/Components/Network.py +++ b/lib/python/Components/Network.py @@ -198,7 +198,15 @@ class Network: def getNumberOfAdapters(self): return len(self.ifaces) - + + def getFriendlyAdapterName(self, x): + # maybe this needs to be replaced by an external list. + friendlyNames = { + "eth0": _("Integrated Ethernet"), + "wlan0": _("Wireless") + } + return friendlyNames.get(x, x) # when we have no friendly name, use adapter name + def getAdapterName(self, iface): return iface |
