Update
This commit is contained in:
1 parent
3530afb854
commit
6903fcff27
2146 files changed
+112256
-190703
No files matched your search
+7
-1
@@ -1,4 +1,4 @@
|
||||
// Copyright (c) Tailscale Inc & AUTHORS
|
||||
// Copyright (c) Tailscale Inc & contributors
|
||||
// SPDX-License-Identifier: BSD-3-Clause
|
||||
|
||||
// Package distro reports which distro we're running on.
|
||||
@@ -19,6 +19,7 @@ type Distro string
|
||||
|
||||
const (
|
||||
Debian = Distro("debian")
|
||||
Crostini = Distro("crostini") // ChromeOS Crostini Linux container; Debian-based
|
||||
Arch = Distro("arch")
|
||||
Synology = Distro("synology")
|
||||
OpenWrt = Distro("openwrt")
|
||||
@@ -84,6 +85,11 @@ func linuxDistro() Distro {
|
||||
// Currently supported product families:
|
||||
// - UDM (UniFi Dream Machine, UDM-Pro)
|
||||
return UBNT
|
||||
case have("/opt/google/cros-containers/bin/garcon"):
|
||||
// ChromeOS Crostini ships /opt/google/cros-containers/bin/garcon
|
||||
// in every penguin container. MUST be checked before Debian since
|
||||
// Crostini is Debian-based.
|
||||
return Crostini
|
||||
case have("/etc/debian_version"):
|
||||
return Debian
|
||||
case have("/etc/arch-release"):
|
||||
|
||||
Reference in new issue
Block a user