fix rfmod audio (on and off was swapped)
[enigma2.git] / lib / python / Components / Network.py
index 0493f0faccef25f6b3c8f7441f3c4e9d670945ac..f65863dc55145470c93ce3dd85f694128afcf56a 100644 (file)
@@ -80,9 +80,14 @@ class Network:
                except:
                        print "[Network.py] parsing network failed"
 
+       def deactivateNetworkConfig(self):
+               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
-               os.system("/etc/init.d/networking restart")
+               os.system("/etc/init.d/networking start")
                config.network.ip.value = self.getCurrentIP()
                config.network.ip.save()