_available_interfaces: Try with "ip link" if ifconfig is N/A also with -a.
This commit is contained in:
parent
61fe8d10a8
commit
eef7941842
@ -901,8 +901,7 @@ _available_interfaces()
|
||||
if [[ ${1:-} == -w ]]; then
|
||||
cmd="iwconfig"
|
||||
elif [[ ${1:-} == -a ]]; then
|
||||
# TODO: the corresponding ip link one
|
||||
cmd="ifconfig"
|
||||
cmd="{ ifconfig || ip link show up; }"
|
||||
else
|
||||
cmd="{ ifconfig -a || ip link show; }"
|
||||
fi
|
||||
|
Loading…
x
Reference in New Issue
Block a user