mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-28 00:24:21 +02:00
optional printers type in devices menu
git-svn-id: http://www.observium.org/svn/observer/trunk@738 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -142,6 +142,11 @@ while ($device = mysql_fetch_array($device_query)) {
|
||||
if ($device['type'] == "unknown") { $device['type'] = 'firewall'; }
|
||||
}
|
||||
|
||||
if ($device['os'] == "dell-laser")
|
||||
{
|
||||
if ($device['type'] == "unknown") { $device['type'] = 'printer'; }
|
||||
}
|
||||
|
||||
$update_query = "UPDATE `devices` SET ";
|
||||
$update_query .= " `last_discovered` = NOW(), `type` = '" . $device['type'] . "'";
|
||||
$update_query .= " WHERE `device_id` = '" . $device['device_id'] . "'";
|
||||
|
||||
Reference in New Issue
Block a user