Skip to content

Commit a5c69b5

Browse files
authored
Update v-list-sys-interfaces (hestiacp#3910)
See: https://forum.hestiacp.com/t/network-interfaces-vlan/10539 In main.sh we already changed it 3 weeks ago
1 parent f68f527 commit a5c69b5

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

bin/v-list-sys-interfaces

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,10 +68,7 @@ csv_list() {
6868

6969
# Defining interface list
7070
# 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
71+
physical_nics="$(ip -d -j link show | jq -r '.[] | if .link_type == "loopback" then empty else .ifname end')"
7572

7673
# Listing data
7774
case $format in

0 commit comments

Comments
 (0)