Handle different command line syntax for zmcontrol.pl
This commit is contained in:
parent
b354641df3
commit
3e55795cad
|
@ -379,6 +379,8 @@ class MonitorsController extends AppController {
|
||||||
$args = '';
|
$args = '';
|
||||||
if ( $daemon == 'zmc' and $monitor['Type'] == 'Local' ) {
|
if ( $daemon == 'zmc' and $monitor['Type'] == 'Local' ) {
|
||||||
$args = '-d ' . $monitor['Device'];
|
$args = '-d ' . $monitor['Device'];
|
||||||
|
} else if ( $daemon == 'zmcontrol.pl' ) {
|
||||||
|
$args = '--id '.$id;
|
||||||
} else {
|
} else {
|
||||||
$args = '-m ' . $id;
|
$args = '-m ' . $id;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue