fix freebsd discovery

git-svn-id: http://www.observium.org/svn/observer/trunk@188 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Adam Amstrong
2008-03-22 15:26:37 +00:00
parent f77d294b6c
commit f40540f7d7

View File

@@ -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
?>