FIX: bug in WOL

This commit is contained in:
Paolo Asperti 2017-10-08 19:42:51 +02:00
parent 2786dfea1c
commit 671e8286f4
2 changed files with 2 additions and 2 deletions

View File

@ -29,7 +29,7 @@ sub wake_host
my $h = $db_hosts->get($hostName) or die "No host record for $hostName";
my $client = $h[0];
my $mac = $client->prop('MacAddress');
system("/sbin/ether-wake -i lan0 $mac") == 0
system("/sbin/ether-wake -b -i lan0 $mac") == 0
or die "Error waking up $hostName";
}

View File

@ -14,7 +14,7 @@ my @items = $db_hosts->get_all('local');
foreach my $item (@items) {
my $hostName = $item->key;
my $mac = $item->prop('MacAddress');
system("/sbin/ether-wake -i lan0 $mac &") == 0
system("/sbin/ether-wake -b -i lan0 $mac &") == 0
or die "Error waking up $hostName";
}