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:
parent
3a4563375b
commit
2690e8eff3
@ -1214,6 +1214,9 @@ sub
|
|||||||
CommandShutdown($$)
|
CommandShutdown($$)
|
||||||
{
|
{
|
||||||
my ($cl, $param) = @_;
|
my ($cl, $param) = @_;
|
||||||
|
return "Usage: shutdown [restart]"
|
||||||
|
if($param && $param ne "restart");
|
||||||
|
|
||||||
DoTrigger("global", "SHUTDOWN", 1);
|
DoTrigger("global", "SHUTDOWN", 1);
|
||||||
Log 0, "Server shutdown";
|
Log 0, "Server shutdown";
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user