Handle different command line syntax for zmcontrol.pl

This commit is contained in:
Isaac Connor 2020-03-26 13:57:43 -04:00
parent b354641df3
commit 3e55795cad
1 changed files with 2 additions and 0 deletions

View File

@ -379,6 +379,8 @@ class MonitorsController extends AppController {
$args = '';
if ( $daemon == 'zmc' and $monitor['Type'] == 'Local' ) {
$args = '-d ' . $monitor['Device'];
} else if ( $daemon == 'zmcontrol.pl' ) {
$args = '--id '.$id;
} else {
$args = '-m ' . $id;
}