aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Components
diff options
context:
space:
mode:
authorAndreas Monzner <andreas.monzner@multimedia-labs.de>2008-09-30 16:30:17 +0000
committerAndreas Monzner <andreas.monzner@multimedia-labs.de>2008-09-30 16:30:17 +0000
commit04b494e437db398c5c16e0562cb415fe29c715ab (patch)
treef0a097165877ce4d4d62062ace0bfc960fdb618d /lib/python/Components
parentd456978f5f5ac662ef1d9dd48229026c89d70d49 (diff)
downloadenigma2-04b494e437db398c5c16e0562cb415fe29c715ab.tar.gz
enigma2-04b494e437db398c5c16e0562cb415fe29c715ab.zip
Networksetup update
Diffstat (limited to 'lib/python/Components')
-rw-r--r--lib/python/Components/Network.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/python/Components/Network.py b/lib/python/Components/Network.py
index 79ec1ed6..c28710b7 100644
--- a/lib/python/Components/Network.py
+++ b/lib/python/Components/Network.py
@@ -163,10 +163,19 @@ class Network:
if (currif != ""):
if (split[0] == "address"):
ifaces[currif]["address"] = map(int, split[1].split('.'))
+ if self.ifaces[currif].has_key("ip"):
+ if self.ifaces[currif]["ip"] != ifaces[currif]["address"] and ifaces[currif]["dhcp"] == False:
+ self.ifaces[currif]["ip"] = map(int, split[1].split('.'))
if (split[0] == "netmask"):
ifaces[currif]["netmask"] = map(int, split[1].split('.'))
+ if self.ifaces[currif].has_key("netmask"):
+ if self.ifaces[currif]["netmask"] != ifaces[currif]["netmask"] and ifaces[currif]["dhcp"] == False:
+ self.ifaces[currif]["netmask"] = map(int, split[1].split('.'))
if (split[0] == "gateway"):
ifaces[currif]["gateway"] = map(int, split[1].split('.'))
+ if self.ifaces[currif].has_key("gateway"):
+ if self.ifaces[currif]["gateway"] != ifaces[currif]["gateway"] and ifaces[currif]["dhcp"] == False:
+ self.ifaces[currif]["gateway"] = map(int, split[1].split('.'))
if (split[0] == "pre-up"):
self.ifaces[currif]["preup"] = i
if (split[0] == "post-down"):