From 4b0ecef735b1d10c0bcb88adb30135a8ba34688e Mon Sep 17 00:00:00 2001 From: Emiliano Vavassori Date: Fri, 16 Mar 2018 00:24:51 +0100 Subject: [PATCH] Fixing doraemon-wake script exiting with error everywhere. --- root/etc/e-smith/events/actions/doraemon-wake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/root/etc/e-smith/events/actions/doraemon-wake b/root/etc/e-smith/events/actions/doraemon-wake index 88b45fc..e6eae53 100755 --- a/root/etc/e-smith/events/actions/doraemon-wake +++ b/root/etc/e-smith/events/actions/doraemon-wake @@ -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