added kernel name command
This commit is contained in:
parent
d41849e6f8
commit
275c50f0e9
2 changed files with 5 additions and 3 deletions
|
|
@ -45,8 +45,8 @@ func GetKernel() string {
|
|||
return string(kernel)
|
||||
}
|
||||
|
||||
func GetHostname() string {
|
||||
cmd := exec.Command("uname", "-n")
|
||||
func Unamebs(gamering string) string {
|
||||
cmd := exec.Command("uname", gamering)
|
||||
shell, _ := cmd.Output()
|
||||
return strings.Replace(string(shell), "\n", "", -1)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue