aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Components
diff options
context:
space:
mode:
authoracid-burn <acid-burn@opendreambox.org>2009-12-17 12:11:35 +0100
committeracid-burn <acid-burn@opendreambox.org>2009-12-17 12:11:35 +0100
commitef7d9da53faae798abe9d04c736cc269015aaa52 (patch)
treef8ff1ddb76db065aeb1bc0e54c28654463e9bf7b /lib/python/Components
parente198493e29c22e49dff1da47e83a989cdbd1d913 (diff)
parent075c89b1e624ce80fa02aa789a319d84cbe928b4 (diff)
downloadenigma2-ef7d9da53faae798abe9d04c736cc269015aaa52.tar.gz
enigma2-ef7d9da53faae798abe9d04c736cc269015aaa52.zip
Merge commit 'origin/bug_203_fix_wrong_networkstate' into experimental
Diffstat (limited to 'lib/python/Components')
-rwxr-xr-xlib/python/Components/Network.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/python/Components/Network.py b/lib/python/Components/Network.py
index f65d6090..bd10d9c3 100755
--- a/lib/python/Components/Network.py
+++ b/lib/python/Components/Network.py
@@ -24,6 +24,7 @@ class Network:
self.activateConsole = Console()
self.resetNetworkConsole = Console()
self.DnsConsole = Console()
+ self.PingConsole = Console()
self.config_ready = None
self.getInterfaces()
@@ -475,10 +476,17 @@ class Network:
def getLinkStateFinished(self, result, retval,extra_args):
(callback) = extra_args
+
if self.LinkConsole is not None:
if len(self.LinkConsole.appContainers) == 0:
callback(result)
+ def stopPingConsole(self):
+ if self.PingConsole is not None:
+ if len(self.PingConsole.appContainers):
+ for name in self.PingConsole.appContainers.keys():
+ self.PingConsole.kill(name)
+
def stopLinkStateConsole(self):
if self.LinkConsole is not None:
if len(self.LinkConsole.appContainers):