diff options
| author | Jeff Carr <[email protected]> | 2024-01-06 16:36:34 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-01-06 16:36:34 -0600 |
| commit | bd3e75e68779b36186fb85a61b726b71a178e96f (patch) | |
| tree | fb4d7aeb86414fc88c1469c6fa0bb681c4fb803b /linuxstatus/draw.go | |
| parent | c6dbbc35425de892f4e853bdc7cdd0a4d31349b3 (diff) | |
LinuxStatus() detects VALID hostname
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'linuxstatus/draw.go')
| -rw-r--r-- | linuxstatus/draw.go | 3 |
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 =") |
