mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
fix freebsd discovery
git-svn-id: http://www.observium.org/svn/observer/trunk@188 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -1,7 +1,8 @@
|
||||
<?
|
||||
|
||||
if(!$os) {
|
||||
if(preg_match("/^FreeBSD/", $sysDescr)) { $os = "FreeBSD"; }
|
||||
}
|
||||
if(strstr($sysDescr, "FreeBSD")) { $os = "FreeBSD"; }} ## It's FreeBSD!
|
||||
if(strstr($sysDescr, "Voswall")) { unset($os); }} ## Oh-No-It-Isn't!!
|
||||
if(strstr($sysDescr, "m0n0wall")) { unset($os); }} ## Ditto
|
||||
|
||||
?>
|
||||
|
Reference in New Issue
Block a user