diff options
| author | Ronny Strutz <ronny.strutz@multimedia-labs.de> | 2005-09-29 00:51:43 +0000 |
|---|---|---|
| committer | Ronny Strutz <ronny.strutz@multimedia-labs.de> | 2005-09-29 00:51:43 +0000 |
| commit | c046e98830b87ea1f275e4c2d4ebc5c0cb7d0321 (patch) | |
| tree | aa493046bb82cc692fb3715deb24cf07e4609486 /lib/python/Components | |
| parent | cdeb634affac7c3083937825bbf2c89cd11e84f9 (diff) | |
| download | enigma2-c046e98830b87ea1f275e4c2d4ebc5c0cb7d0321.tar.gz enigma2-c046e98830b87ea1f275e4c2d4ebc5c0cb7d0321.zip | |
removed os-calls and removed ",sir" ;)
Diffstat (limited to 'lib/python/Components')
| -rw-r--r-- | lib/python/Components/Network.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/python/Components/Network.py b/lib/python/Components/Network.py index cc6ed26a..9dc06e7f 100644 --- a/lib/python/Components/Network.py +++ b/lib/python/Components/Network.py @@ -22,7 +22,7 @@ class Network: def activateNetworkConfig(self): import os - os.system("/etc/init.d/networking restart") + #os.system("/etc/init.d/networking restart") def setDHCP(self, useDHCP): if (useDHCP): @@ -39,12 +39,14 @@ class Network: config.network.dns.enabled = True def setIPNameserver(self, ip): + return resolvconf = file('/etc/resolv.conf', 'w') resolvconf.write("nameserver %d.%d.%d.%d" % tuple(ip)) resolvconf.close() def setMACAddress(self, mac): - os.system("echo ifconfig eth0 ether %02x:%02x:%02x:%02x:%02x:%02x" % tuple(mac)) + #os.system("echo ifconfig eth0 ether %02x:%02x:%02x:%02x:%02x:%02x" % tuple(mac)) + pass def setIPAddress(self, ip): os.system("echo ifconfig eth0 %d.%d.%d.%d" % tuple(ip)) @@ -68,7 +70,8 @@ def InitNetwork(): config.network.mac = configElement("config.network.mac", configSequence, [00,11,22,33,44,55], ((":"), (1,255))) #FIXME using this till other concept for this is implemented - config.network.activate = configElement("config.network.activate", configSelection, 0, ("yes, sir", "you are my hero")) + #config.network.activate = configElement("config.network.activate", configSelection, 0, ("yes, sir", "you are my hero")) + config.network.activate = configElement("config.network.activate", configSelection, 0, ("yes", "you are my hero")) iNetwork = Network() |
