mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-01 20:20:10 +00:00
WOL module status did not work on FritzBoxes
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@1207 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
fe51fc5822
commit
76838c45ef
@ -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";
|
||||
|
Loading…
x
Reference in New Issue
Block a user