- add option to (re)discovery only linux devices

This commit is contained in:
Sławomir Paszkiewicz
2015-10-09 10:01:58 +02:00
parent 9a0fac9a52
commit c94340d060

View File

@@ -47,6 +47,10 @@ if (isset($options['h'])) {
$where = 'AND `last_discovered` IS NULL';
$doing = 'new';
}
else if ($options['h'] == 'linux') {
$where = 'AND os = "linux"';
$doing = 'linux';
}
else if ($options['h']) {
if (is_numeric($options['h'])) {
$where = "AND `device_id` = '".$options['h']."'";