git.cweiske.de
/
enigma2.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6b7a8bd
)
(final?) fix in getCurrentIP
author
Stefan Pluecken
<
[email protected]
>
Wed, 14 Dec 2005 13:47:10 +0000
(13:47 +0000)
committer
Stefan Pluecken
<
[email protected]
>
Wed, 14 Dec 2005 13:47:10 +0000
(13:47 +0000)
lib/python/Components/Network.py
patch
|
blob
|
history
diff --git
a/lib/python/Components/Network.py
b/lib/python/Components/Network.py
index 444269fbe97467ce47470e2ce76ee6c4c02d6f93..99afb75db93c7dd946fc95353fe59006c24bd595 100644
(file)
--- a/
lib/python/Components/Network.py
+++ b/
lib/python/Components/Network.py
@@
-123,7
+123,7
@@
class Network:
ipstr = [0,0,0,0]
for x in os.popen("ifconfig eth0 | grep 'inet addr:'", "r").readline().split(' '):
if x.split(':')[0] == "addr":
- ip = x.split(':')[1].split('.')
+ ip
str
= x.split(':')[1].split('.')
ip = []
for x in ipstr:
ip.append(int(x))