isFreeBSD checks if running on FreeBSD using uname -s
()
| 99 | |
| 100 | // isFreeBSD checks if running on FreeBSD using uname -s |
| 101 | func (d *Detector) isFreeBSD() bool { |
| 102 | cmd := exec.Command("uname", "-s") |
| 103 | output, err := cmd.Output() |
| 104 | if err != nil { |
| 105 | return false |
| 106 | } |
| 107 | return strings.TrimSpace(string(output)) == "FreeBSD" |
| 108 | } |
| 109 | |
| 110 | // isPfSense checks if running on pfSense (FreeBSD-based firewall) |
| 111 | func (d *Detector) isPfSense() bool { |
no outgoing calls
no test coverage detected