From 5c0165ccdc01ff928b60739407f807b067734905 Mon Sep 17 00:00:00 2001 From: ulimaass <> Date: Sat, 27 Jul 2013 05:52:25 +0000 Subject: [PATCH] Eliminated hmlan-interference based on thread http://forum.fhem.de/index.php?t=msg&th=11823&goto=69801&rid=86#msg_69801 git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@3510 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- FHEM/98_WOL.pm | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/FHEM/98_WOL.pm b/FHEM/98_WOL.pm index 5eee14212..7afbe5831 100644 --- a/FHEM/98_WOL.pm +++ b/FHEM/98_WOL.pm @@ -102,7 +102,11 @@ sub WOL_GetUpdate($) my $ip = $hash->{IP}; #if (system("ping -q -c 1 $ip > /dev/null") == 0) - if (`ping -c 1 $ip` =~ m/100/) + #### + #changed 2013-07-27 by UliM + #based on Thread http://forum.fhem.de/index.php?t=msg&th=11823&goto=69801&rid=86#msg_69801 + #if (`ping -c 1 $ip` =~ m/100/) + if (`ping -c 1 -w 1 $ip` =~ m/100%/) { $hash->{READINGS}{state}{VAL} = "off"; $hash->{READINGS}{isRunning}{VAL} = "false";