Added check if $os = linux

This commit is contained in:
laf
2015-03-25 17:07:37 +00:00
parent a6802ec217
commit f1c1adbc71
+1 -1
View File
@@ -1,6 +1,6 @@
<?php
if (!$os) {
if (!$os || $os == 'linux') {
if (stristr(snmp_get($device, "dot11manufacturerName.5", "-Oqv", "IEEE802dot11-MIB"),"Ubiquiti Networks") || stristr(snmp_get($device, "dot11manufacturerName.6", "-Oqv", "IEEE802dot11-MIB"),"Ubiquiti Networks")) {
$os = "ubiquitiap";
}