From 2a2e75720f79e507eabe45f9622eeb18e0deaba0 Mon Sep 17 00:00:00 2001 From: Nicolas Boisselier Date: Tue, 9 Apr 2019 05:35:35 +0100 Subject: [PATCH] etc/profile.d/nb.sh --- etc/profile.d/nb.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/etc/profile.d/nb.sh b/etc/profile.d/nb.sh index 8dad8c9b..71f0564e 100644 --- a/etc/profile.d/nb.sh +++ b/etc/profile.d/nb.sh @@ -125,6 +125,7 @@ nb_api_post_host_info() { nb_api_post_hosts_infos() { ( sys_infos + sys_interfaces | awk 'BEGIN{preff="int."} {print preff""$1".mac\t"$2} $3!="" {print preff""$1".ip\t"$3;}' which lshw > /dev/null && lshw -quiet -class system 2>/dev/null \ | awk '/^ /{sub("^ *","",$0); sub(": ","\t",$0); print $0}' \ ; -- 2.47.3