diff options
| author | Jeff Carr <[email protected]> | 2024-01-06 05:24:11 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-01-06 05:24:11 -0600 |
| commit | 4529b473dc12d8a4d1b49c9ee1ba89897f86d616 (patch) | |
| tree | 20cdc5bd7c644e3fb8d7afa8e7b872b1f2082684 /hostname.go | |
| parent | a808bb55189a44d0c3b2965805c14644f8102cca (diff) | |
add LinuxStatus()
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'hostname.go')
| -rw-r--r-- | hostname.go | 11 |
1 files changed, 0 insertions, 11 deletions
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 |
