Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Restore them to one file, improve unit tests by adding FreeBSD to the string
- Loading branch information
Showing
7 changed files
with
12 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,12 @@ | ||
<?php | ||
|
||
if (str_contains($sysDescr, 'FreeBSD')) { | ||
// FreeBSD variants, check for specialized distros first | ||
if (str_contains($sysDescr, 'pfSense')) { | ||
$os = 'pfsense'; | ||
} elseif (str_contains($sysDescr, 'Voswall')) { | ||
$os = 'voswall'; | ||
} elseif (str_contains($sysDescr, 'm0n0wall')) { | ||
$os = 'monowall'; | ||
} elseif (str_contains($sysDescr, 'FreeBSD')) { | ||
$os = 'freebsd'; | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
1.3.6.1.2.1.1.1.0|4|m0n0wall | ||
1.3.6.1.2.1.1.1.0|4|m0n0wall FreeBSD |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
1.3.6.1.2.1.1.1.0|4|pfSense | ||
1.3.6.1.2.1.1.1.0|4|pfSense 2.3.2-RELEASE pfSense FreeBSD 10.3-RELEASE-p5 amd64 | ||
1.3.6.1.2.1.1.2.0|6|1.3.6.1.4.1.12325.1.1.2.1.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
1.3.6.1.2.1.1.1.0|4|Voswall | ||
1.3.6.1.2.1.1.1.0|4|Voswall FreeBSD |