mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-02-01 01:09:47 +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 ($hash) = @_;
|
||||||
|
|
||||||
my $ip = $hash->{IP};
|
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}{state}{VAL} = "on";
|
||||||
$hash->{READINGS}{isRunning}{VAL} = "true";
|
$hash->{READINGS}{isRunning}{VAL} = "true";
|
||||||
|
Loading…
Reference in New Issue
Block a user