version/distro: report TrueNAS Scale as "truenas"
TrueNAS Scale is based on Debian Linux Signed-off-by: Todd Neal <todd@tneal.org>pull/3534/head
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