Fixing doraemon-wake script exiting with error everywhere.

This commit is contained in:
Emiliano Vavassori 2018-03-16 00:24:51 +01:00
parent 9589d3b63a
commit 4b0ecef735
1 changed files with 1 additions and 1 deletions

View File

@ -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