git.cweiske.de
/
enigma2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
dont send a diseqc switch command when simple rotor mode is used
[enigma2.git]
/
lib
/
python
/
Components
/
Network.py
diff --git
a/lib/python/Components/Network.py
b/lib/python/Components/Network.py
index 37af0c98a0e263c7e9977abffc1818fd99ef8140..a8c75907ddfff25639306f3478c744fb23ed25d2 100644
(file)
--- a/
lib/python/Components/Network.py
+++ b/
lib/python/Components/Network.py
@@
-95,7
+95,7
@@
class Network:
return data
def writeNetworkConfig(self):
return data
def writeNetworkConfig(self):
- fp = file('/etc/network/interfaces
.tmp
', 'w')
+ fp = file('/etc/network/interfaces', 'w')
fp.write("# automatically generated by enigma 2\n# do NOT change manually!\n\n")
fp.write("auto lo\n")
fp.write("iface lo inet loopback\n\n")
fp.write("# automatically generated by enigma 2\n# do NOT change manually!\n\n")
fp.write("auto lo\n")
fp.write("iface lo inet loopback\n\n")
@@
-134,7
+134,7
@@
class Network:
interfaces = []
# parse the interfaces-file
try:
interfaces = []
# parse the interfaces-file
try:
- fp = file('/etc/network/interfaces
.tmp
', 'r')
+ fp = file('/etc/network/interfaces', 'r')
interfaces = fp.readlines()
fp.close()
except:
interfaces = fp.readlines()
fp.close()
except:
@@
-190,7
+190,7
@@
class Network:
def deactivateNetworkConfig(self):
for iface in self.ifaces.keys():
def deactivateNetworkConfig(self):
for iface in self.ifaces.keys():
- os.system("ip addr flush" + iface)
+ os.system("ip addr flush
" + iface)
os.system("/etc/init.d/networking stop")
os.system("killall -9 udhcpc")
os.system("rm /var/run/udhcpc*")
os.system("/etc/init.d/networking stop")
os.system("killall -9 udhcpc")
os.system("rm /var/run/udhcpc*")