mirror of
https://github.com/tailscale/tailscale.git
synced 2024-11-29 04:55:31 +00:00
version/distro: report TrueNAS Scale as "truenas"
TrueNAS Scale is based on Debian Linux Signed-off-by: Todd Neal <todd@tneal.org>
This commit is contained in:
parent
c18dc57861
commit
e34ba3223c
@ -49,6 +49,9 @@ func linuxDistro() Distro {
|
||||
switch {
|
||||
case haveDir("/usr/syno"):
|
||||
return Synology
|
||||
case have("/usr/local/bin/freenas-debug"):
|
||||
// TrueNAS Scale runs on debian
|
||||
return TrueNAS
|
||||
case have("/etc/debian_version"):
|
||||
return Debian
|
||||
case have("/etc/arch-release"):
|
||||
@ -70,6 +73,7 @@ func freebsdDistro() Distro {
|
||||
case have("/usr/local/sbin/opnsense-shell"):
|
||||
return OPNsense
|
||||
case have("/usr/local/bin/freenas-debug"):
|
||||
// TrueNAS Core runs on FreeBSD
|
||||
return TrueNAS
|
||||
}
|
||||
return ""
|
||||
|
Loading…
Reference in New Issue
Block a user