Merge pull request #1157 from SaberUK/insp20+fix-cron-restart

[2.0] Fix 'cron' and 'restart' in the helper not forwarding arguments.
This commit is contained in:
Attila Molnar 2016-03-22 14:40:01 +01:00
commit 571714e28b

View File

@ -135,7 +135,7 @@ sub cmd_rehash()
sub cmd_cron()
{
if (getstatus() == 0) { goto &cmd_start(); }
if (getstatus() == 0) { goto &cmd_start(@_); }
exit();
}
@ -149,7 +149,7 @@ sub cmd_restart(@)
{
cmd_stop();
unlink($pidfile) if (-e $pidfile);
goto &cmd_start;
goto &cmd_start(@_);
}
sub hid_cheese_sandwich()