mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-12 16:06:25 +02:00
Update vyos.inc.php
Newer vyos reports back as all lower case so making the check case-insensitive.
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
if (!$os || $os == "vyatta") {
|
if (!$os || $os == "vyatta") {
|
||||||
if (preg_match("/^Vyatta VyOS/", $sysDescr) || preg_match("/^VyOS/", $sysDescr)) {
|
if (preg_match("/^Vyatta VyOS/", $sysDescr) || preg_match("/^VyOS/i", $sysDescr)) {
|
||||||
$os = "vyos";
|
$os = "vyos";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user