MCPcopy Index your code
hub / github.com/PatchMon/PatchMon / isPfSense

Method isPfSense

agent-source-code/internal/system/system.go:111–115  ·  view source on GitHub ↗

isPfSense checks if running on pfSense (FreeBSD-based firewall)

()

Source from the content-addressed store, hash-verified

109
110// isPfSense checks if running on pfSense (FreeBSD-based firewall)
111func (d *Detector) isPfSense() bool {
112 // pfSense uses /cf/conf/config.xml for its config; vanilla FreeBSD does not
113 _, err := os.Stat("/cf/conf/config.xml")
114 return err == nil
115}
116
117// getPfSenseInfo gets pfSense OS type and version
118func (d *Detector) getPfSenseInfo() (osType, osVersion string, err error) {

Callers 1

DetectOSMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected