tiny code cleanup, no functional difference

This commit is contained in:
Harald Hope 2017-05-31 16:54:35 -07:00
parent 57cd26226e
commit 8cf20a2c62

9
inxi
View file

@ -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
}
}