summaryrefslogtreecommitdiff
path: root/linuxstatus/draw.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-01-06 16:36:34 -0600
committerJeff Carr <[email protected]>2024-01-06 16:36:34 -0600
commit983517732d9f193771665d8191c58e47028c6670 (patch)
tree44f7bf4e6cf51ed3f8a6460c9df83da0a61c1375 /linuxstatus/draw.go
parent24c72570a54b7aef67494e8cacecb0a896b19886 (diff)
LinuxStatus() detects VALID hostname
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'linuxstatus/draw.go')
-rw-r--r--linuxstatus/draw.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/linuxstatus/draw.go b/linuxstatus/draw.go
index 5d28347..91e0a6a 100644
--- a/linuxstatus/draw.go
+++ b/linuxstatus/draw.go
@@ -15,7 +15,8 @@ func draw(ls *LinuxStatus) {
ls.grid.SetNext(1,1)
- ls.fqdn = gadgets.NewOneLiner(ls.grid, "hostname -f")
+ ls.hostnameStatus = gadgets.NewOneLiner(ls.grid, "status")
+ ls.hostname = gadgets.NewOneLiner(ls.grid, "hostname -f")
ls.hostshort = gadgets.NewOneLiner(ls.grid, "hostname -s")
ls.domainname = gadgets.NewOneLiner(ls.grid, "domain name")
ls.resolver = gadgets.NewOneLiner(ls.grid, "nameservers =")