From ed40f6f85c9c07c3c1224ae20601082c0309a631 Mon Sep 17 00:00:00 2001 From: Andreas Monzner Date: Tue, 19 Dec 2006 02:12:57 +0000 Subject: some python import cleanups lesser swig overhead --- lib/python/Components/Network.py | 2 -- 1 file changed, 2 deletions(-) (limited to 'lib/python/Components/Network.py') diff --git a/lib/python/Components/Network.py b/lib/python/Components/Network.py index 5add0c01..f65863dc 100644 --- a/lib/python/Components/Network.py +++ b/lib/python/Components/Network.py @@ -81,14 +81,12 @@ class Network: 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 os.system("/etc/init.d/networking start") config.network.ip.value = self.getCurrentIP() config.network.ip.save() -- cgit v1.2.3