mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 18:59:33 +00:00
WOL module status did not work on FritzBoxes
git-svn-id: https://svn.fhem.de/fhem/trunk@1207 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
8ffdb0e62f
commit
445d0e2d34
@ -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…
Reference in New Issue
Block a user