We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f68f527 commit a5c69b5Copy full SHA for a5c69b5
bin/v-list-sys-interfaces
@@ -68,10 +68,7 @@ csv_list() {
68
69
# Defining interface list
70
# Detect "physical" NICs only (virtual NICs created by Docker, WireGuard etc. are excluded)
71
-physical_nics="$(ip -d -j link show | jq -r '.[] | if .link_type == "loopback" // .linkinfo.info_kind then empty else .ifname end')"
72
-if [ -z "$physical_nics" ]; then
73
- physical_nics="$(ip -d -j link show | jq -r '.[] | if .link_type == "loopback" then empty else .ifname end')"
74
-fi
+physical_nics="$(ip -d -j link show | jq -r '.[] | if .link_type == "loopback" then empty else .ifname end')"
75
76
# Listing data
77
case $format in
0 commit comments