forked from LibreSchool/doraemon
FIX: bug in WOL
This commit is contained in:
parent
2786dfea1c
commit
671e8286f4
@ -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";
|
||||
|
||||
}
|
||||
|
@ -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";
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user