mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
* newdevice: Added Tomato and AsusWRT-Merlin OS #5254 * that should not be there
This commit is contained in:
committed by
Tony Murray
parent
7d27b4ec9a
commit
89a2847b69
@@ -32,5 +32,12 @@ if (starts_with($sysDescr, 'Linux')) {
|
||||
$os = 'pcoweb'; // Carel PCOweb
|
||||
} elseif (starts_with($sysDescr, 'Linux mirthtemplate')) {
|
||||
$os = 'mirth';
|
||||
} elseif ($wrt = snmp_get($device, '.1.3.6.1.4.1.2021.7890.1.101.1', '-Osqnv')) {
|
||||
$wrt = trim($wrt, '"');
|
||||
if (starts_with($wrt, 'ASUSWRT-Merlin')) {
|
||||
$os = 'asuswrt-merlin';
|
||||
} elseif (starts_with($wrt, 'Tomato ')) {
|
||||
$os = 'tomato';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user