mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-04 05:16:45 +00:00
Eliminated hmlan-interference based on thread http://forum.fhem.de/index.php?t=msg&th=11823&goto=69801&rid=86#msg_69801
git-svn-id: https://svn.fhem.de/fhem/trunk@3510 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
89f25d345f
commit
ec8da5bb10
@ -102,7 +102,11 @@ sub WOL_GetUpdate($)
|
|||||||
|
|
||||||
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/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}{state}{VAL} = "off";
|
||||||
$hash->{READINGS}{isRunning}{VAL} = "false";
|
$hash->{READINGS}{isRunning}{VAL} = "false";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user