aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Components
diff options
context:
space:
mode:
authorAndreas Monzner <andreas.monzner@multimedia-labs.de>2008-07-14 14:36:13 +0000
committerAndreas Monzner <andreas.monzner@multimedia-labs.de>2008-07-14 14:36:13 +0000
commit0757605627e161bd9c666b6434ab5ace536565d1 (patch)
tree4441483ee0c6d74c5d2a5664917f757fd86c9587 /lib/python/Components
parenta1d328e3c9aff2f1f8cc55c21eb0c6dd010174d3 (diff)
downloadenigma2-0757605627e161bd9c666b6434ab5ace536565d1.tar.gz
enigma2-0757605627e161bd9c666b6434ab5ace536565d1.zip
move comment before multi line command to make python happy
Diffstat (limited to 'lib/python/Components')
-rw-r--r--lib/python/Components/Network.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/python/Components/Network.py b/lib/python/Components/Network.py
index 03602f29..d94fa30c 100644
--- a/lib/python/Components/Network.py
+++ b/lib/python/Components/Network.py
@@ -294,9 +294,10 @@ class Network:
self.getInterfaces()
def checkNetworkState(self):
- return system("ping -c 1 82.149.226.170") == 0 or \ # www.dream-multimedia-tv.de
- system("ping -c 1 193.99.144.85") == 0 or \ # www.heise.de
- system("ping -c 1 209.85.135.103") == 0 # www.google.de
+ # www.dream-multimedia-tv.de, www.heise.de, www.google.de
+ return system("ping -c 1 82.149.226.170") == 0 or \
+ system("ping -c 1 193.99.144.85") == 0 or \
+ system("ping -c 1 209.85.135.103") == 0
def restartNetwork(self):
iNetwork.deactivateNetworkConfig()