summaryrefslogtreecommitdiff
path: root/hostname.go
diff options
context:
space:
mode:
Diffstat (limited to 'hostname.go')
-rw-r--r--hostname.go11
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