librenms-librenms/includes/osdiscovery/discover-freebsd.php
Adam Amstrong bfc9f845ce replacing <? with <?php
git-svn-id: http://www.observium.org/svn/observer/trunk@466 61d68cd4-352d-0410-923a-c4978735b2b8
2009-09-07 11:07:59 +00:00

9 lines
240 B
PHP
Executable File

<?php
if(!$os) {
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
}
?>