mirror of
https://github.com/shirou/gopsutil.git
synced 2025-04-26 13:48:59 +08:00
fix some kylin linux bug
This commit is contained in:
parent
434cc29594
commit
add9158d4e
@ -205,6 +205,9 @@ func PlatformInformationWithContext(ctx context.Context) (platform string, famil
|
||||
} else if lsb.ID == "LinuxMint" {
|
||||
platform = "linuxmint"
|
||||
version = lsb.Release
|
||||
} else if lsb.ID == "Kylin" {
|
||||
platform = "Kylin"
|
||||
version = lsb.Release
|
||||
} else {
|
||||
if common.PathExistsWithContents("/usr/bin/raspi-config") {
|
||||
platform = "raspbian"
|
||||
|
Loading…
x
Reference in New Issue
Block a user