forked from LibreSchool/doraemon
Fixing doraemon-wake script exiting with error everywhere.
This commit is contained in:
parent
9589d3b63a
commit
4b0ecef735
@ -26,7 +26,7 @@ sub wake_host
|
||||
# Wake up the host
|
||||
#------------------------------------------------------------
|
||||
|
||||
my $h = $db_hosts->get($hostName) or die "No host record for $hostName";
|
||||
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 -b -i lan0 $mac") == 0
|
||||
|
Loading…
x
Reference in New Issue
Block a user