fhem.pl: shutdown parameter checking
git-svn-id: https://svn.fhem.de/fhem/trunk@4099 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
@@ -1214,6 +1214,9 @@ sub
|
||||
CommandShutdown($$)
|
||||
{
|
||||
my ($cl, $param) = @_;
|
||||
return "Usage: shutdown [restart]"
|
||||
if($param && $param ne "restart");
|
||||
|
||||
DoTrigger("global", "SHUTDOWN", 1);
|
||||
Log 0, "Server shutdown";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user