From bd3e75e68779b36186fb85a61b726b71a178e96f Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Sat, 6 Jan 2024 16:36:34 -0600 Subject: LinuxStatus() detects VALID hostname Signed-off-by: Jeff Carr --- linuxstatus/draw.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'linuxstatus/draw.go') 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 =") -- cgit v1.2.3