newdevice: Added Tomato and AsusWRT-Merlin OS #5254 (#5398)

* newdevice: Added Tomato and AsusWRT-Merlin OS #5254

* that should not be there
This commit is contained in:
Neil Lathwood
2017-01-13 15:31:11 +00:00
committed by Tony Murray
parent 7d27b4ec9a
commit 89a2847b69
8 changed files with 96 additions and 0 deletions

View File

@@ -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';
}
}
}