git.cweiske.de
/
enigma2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
workaround for not working /etc/init.d/network script
[enigma2.git]
/
lib
/
python
/
Components
/
Network.py
diff --git
a/lib/python/Components/Network.py
b/lib/python/Components/Network.py
index 0493f0faccef25f6b3c8f7441f3c4e9d670945ac..5add0c01913aa0560a268514c68fa1f9bf129d17 100644
(file)
--- a/
lib/python/Components/Network.py
+++ b/
lib/python/Components/Network.py
@@
-80,9
+80,16
@@
class Network:
except:
print "[Network.py] parsing network failed"
except:
print "[Network.py] parsing network failed"
+ def deactivateNetworkConfig(self):
+ import os
+ os.system("ip addr flush eth0")
+ os.system("/etc/init.d/networking stop")
+ os.system("killall -9 udhcpc")
+ os.system("rm /var/run/udhcpc*")
+
def activateNetworkConfig(self):
import os
def activateNetworkConfig(self):
import os
- os.system("/etc/init.d/networking
re
start")
+ os.system("/etc/init.d/networking start")
config.network.ip.value = self.getCurrentIP()
config.network.ip.save()
config.network.ip.value = self.getCurrentIP()
config.network.ip.save()