mirror of
https://github.com/smxi/inxi.git
synced 2024-11-17 00:31:19 +00:00
tiny code cleanup, no functional difference
This commit is contained in:
parent
57cd26226e
commit
8cf20a2c62
9
inxi
9
inxi
|
@ -8154,21 +8154,16 @@ get_networking_local_ip_data()
|
||||||
ifMask = $4
|
ifMask = $4
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
# bsds end ip with %em1 (% + interface name)
|
||||||
if ( $0 ~ /inet6.*%/ ){
|
if ( $0 ~ /inet6.*%/ ){
|
||||||
if ( $2 ~ /^fe80/ ) {
|
|
||||||
sub(/%.*/,"",$2)
|
sub(/%.*/,"",$2)
|
||||||
|
if ( $2 ~ /^fe80/ ) {
|
||||||
addIpV6 = $2
|
addIpV6 = $2
|
||||||
}
|
}
|
||||||
else if ( $2 ~ /^fec0/ || $2 ~ /^fc00/ ) {
|
else if ( $2 ~ /^fec0/ || $2 ~ /^fc00/ ) {
|
||||||
sub(/%.*/,"",$2)
|
|
||||||
addExtV6 = "ss~" $2
|
addExtV6 = "ss~" $2
|
||||||
}
|
}
|
||||||
# else if ( $2 ~ /^2/ ) {
|
|
||||||
# sub(/%.*/,"",$2)
|
|
||||||
# addExtV6 = "sg~" $2
|
|
||||||
# }
|
|
||||||
else {
|
else {
|
||||||
sub(/%.*/,"",$2)
|
|
||||||
addExtV6 = "sg~" $2
|
addExtV6 = "sg~" $2
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue