mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-30 16:14:21 +02:00
code cleanup/reformat os discovery files
git-svn-id: http://www.observium.org/svn/observer/trunk@1833 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -1,8 +1,10 @@
|
||||
<?php
|
||||
|
||||
if(!$os) {
|
||||
if(strstr($sysDescr, "FreeBSD")) { $os = "freebsd"; } ## It's FreeBSD!
|
||||
if(strstr($sysDescr, "Voswall")) { $os = "voswall"; } ## Oh-No-It-Isn't!!
|
||||
if(strstr($sysDescr, "m0n0wall")) { $os = "monowall"; } ## Ditto
|
||||
if (!$os)
|
||||
{
|
||||
if (strstr($sysDescr, "FreeBSD")) { $os = "freebsd"; } ## It's FreeBSD!
|
||||
if (strstr($sysDescr, "Voswall")) { $os = "voswall"; } ## Oh-No-It-Isn't!!
|
||||
if (strstr($sysDescr, "m0n0wall")) { $os = "monowall"; } ## Ditto
|
||||
}
|
||||
?>
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user