git.cweiske.de
/
enigma2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add a condition to the wizard-parser
[enigma2.git]
/
lib
/
python
/
Components
/
Network.py
diff --git
a/lib/python/Components/Network.py
b/lib/python/Components/Network.py
index 6990f356eb929453e74ea1cc124f764f6413e568..99afb75db93c7dd946fc95353fe59006c24bd595 100644
(file)
--- a/
lib/python/Components/Network.py
+++ b/
lib/python/Components/Network.py
@@
-120,10
+120,13
@@
class Network:
#self.writeNetworkConfig()
def getCurrentIP(self):
#self.writeNetworkConfig()
def getCurrentIP(self):
- ip = [0,0,0,0]
+ ip
str
= [0,0,0,0]
for x in os.popen("ifconfig eth0 | grep 'inet addr:'", "r").readline().split(' '):
if x.split(':')[0] == "addr":
for x in os.popen("ifconfig eth0 | grep 'inet addr:'", "r").readline().split(' '):
if x.split(':')[0] == "addr":
- ip = x.split(':')[1].split('.')
+ ipstr = x.split(':')[1].split('.')
+ ip = []
+ for x in ipstr:
+ ip.append(int(x))
print "[Network.py] got ip " + str(ip)
return ip
print "[Network.py] got ip " + str(ip)
return ip