version/distro: look for absolute synology path

Signed-off-by: David Crawshaw <crawshaw@tailscale.com>
This commit is contained in:
David Crawshaw 2021-04-01 19:24:53 -04:00 committed by David Crawshaw
parent 2f60ab92dd
commit 4ed111281b

View File

@ -40,7 +40,7 @@ func haveDir(file string) bool {
func linuxDistro() Distro {
switch {
case haveDir("usr/syno"):
case haveDir("/usr/syno"):
return Synology
case have("/etc/debian_version"):
return Debian