From 8cf20a2c629b2cff7dc3e7ff63c8706094c00303 Mon Sep 17 00:00:00 2001 From: Harald Hope Date: Wed, 31 May 2017 16:54:35 -0700 Subject: [PATCH] tiny code cleanup, no functional difference --- inxi | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/inxi b/inxi index 1a90cfb..6da31c3 100755 --- a/inxi +++ b/inxi @@ -8154,21 +8154,16 @@ get_networking_local_ip_data() ifMask = $4 } } + # bsds end ip with %em1 (% + interface name) if ( $0 ~ /inet6.*%/ ){ + sub(/%.*/,"",$2) if ( $2 ~ /^fe80/ ) { - sub(/%.*/,"",$2) addIpV6 = $2 } else if ( $2 ~ /^fec0/ || $2 ~ /^fc00/ ) { - sub(/%.*/,"",$2) addExtV6 = "ss~" $2 } -# else if ( $2 ~ /^2/ ) { -# sub(/%.*/,"",$2) -# addExtV6 = "sg~" $2 -# } else { - sub(/%.*/,"",$2) addExtV6 = "sg~" $2 } }