diff --git a/fhem/FHEM/98_WOL.pm b/fhem/FHEM/98_WOL.pm
index 81e75928a..f0168894b 100644
--- a/fhem/FHEM/98_WOL.pm
+++ b/fhem/FHEM/98_WOL.pm
@@ -54,11 +54,11 @@ sub WOL_Set($@) {
if ($cmd eq "") {
Log3 $hash, 3, "No shutdown command given (see shutdownCmd attribute)!";
} else {
-# qx ($cmd);
$cmd = SemicolonEscape($cmd);
Log3 $hash, 3, $mod."shutdownCmd: $cmd executed";
my $ret = AnalyzeCommandChain(undef, $cmd);
Log3 ($hash, 3, $ret) if($ret);
+ return undef;
}
} elsif ($v eq "refresh") {
;
@@ -297,9 +297,9 @@ So, for example a Buffalo NAS can be kept awake.
Examples:
- shutdownCmd set lamp on # fhem command
- shutdownCmd { Log 1, "Teatime" } # Perl command
- shutdownCmd "/bin/echo "Teatime" > /dev/console" # shell command
+ attr wol shutdownCmd set lamp on # fhem command
+ attr wol shutdownCmd { Log 1, "Teatime" } # Perl command
+ attr wol shutdownCmd "/bin/echo "Teatime" > /dev/console" # shell command
attr <name> interval <seconds>