mirror of
https://github.com/fankes/komari-agent.git
synced 2025-10-19 19:19:23 +08:00
feat: add kernel version reporting for all platforms
This commit is contained in:
@@ -156,3 +156,13 @@ func detectProxmoxVE() string {
|
||||
|
||||
return "Proxmox VE"
|
||||
}
|
||||
|
||||
// KernelVersion returns the kernel version on Linux systems
|
||||
func KernelVersion() string {
|
||||
out, err := exec.Command("uname", "-r").Output()
|
||||
if err != nil {
|
||||
return "Unknown"
|
||||
}
|
||||
|
||||
return strings.TrimSpace(string(out))
|
||||
}
|
||||
|
Reference in New Issue
Block a user