2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-03 16:56:54 +00:00

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:
rudolfkoenig 2013-10-22 20:55:35 +00:00
parent 3a4563375b
commit 2690e8eff3

View File

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