2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-04 05:16:45 +00:00
git-svn-id: https://svn.fhem.de/fhem/trunk@3510 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
ulimaass 2013-07-27 05:52:25 +00:00
parent 89f25d345f
commit ec8da5bb10

View File

@ -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";