+ service: Adding freebsd arm support

This commit is contained in:
Tejas Kokje
2020-07-02 08:41:36 +00:00
committed by Simon Zolin
parent a33164bf18
commit 44aad1515a
4 changed files with 27 additions and 3 deletions

View File

@@ -92,3 +92,12 @@ func IsOpenWrt() bool {
return strings.Contains(string(body), "OpenWrt")
}
// IsFreeBSD checks if OS is FreeBSD
func IsFreeBSD() bool {
if runtime.GOOS == "freebsd" {
return true
}
return false
}