From 4529b473dc12d8a4d1b49c9ee1ba89897f86d616 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Sat, 6 Jan 2024 05:24:11 -0600 Subject: add LinuxStatus() Signed-off-by: Jeff Carr --- hostname.go | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'hostname.go') diff --git a/hostname.go b/hostname.go index 062f033..9ca821f 100644 --- a/hostname.go +++ b/hostname.go @@ -25,18 +25,7 @@ func getHostname() { me.status.SetHostname(s) dn := run("domainname") - if (me.domainname.S != dn) { - log.Log(CHANGE, "domainname has changed from", me.domainname.S, "to", dn) - me.domainname.SetText(dn) - me.changed = true - } - hshort := run("hostname -s") - if (me.hostshort.S != hshort) { - log.Log(CHANGE, "hostname -s has changed from", me.hostshort.S, "to", hshort) - me.hostshort.SetText(hshort) - me.changed = true - } var test string test = hshort + "." + dn -- cgit v1.2.3