WOL module status did not work on FritzBoxes

git-svn-id: https://fhem.svn.sourceforge.net/svnroot/fhem/trunk/fhem@1207 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
klassm
2012-01-22 15:55:35 +00:00
parent 36bddf5725
commit 00880e422a

View File

@@ -93,7 +93,8 @@ sub WOL_GetUpdate($)
my ($hash) = @_;
my $ip = $hash->{IP};
if (system("ping -q -c 1 $ip > /dev/null") == 0)
#if (system("ping -q -c 1 $ip > /dev/null") == 0)
if (`ping -c 1 $ip` =~ m/0\% packet loss/)
{
$hash->{READINGS}{state}{VAL} = "on";
$hash->{READINGS}{isRunning}{VAL} = "true";