_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
|
if [[ ${1:-} == -w ]]; then
|
||||||
cmd="iwconfig"
|
cmd="iwconfig"
|
||||||
elif [[ ${1:-} == -a ]]; then
|
elif [[ ${1:-} == -a ]]; then
|
||||||
# TODO: the corresponding ip link one
|
cmd="{ ifconfig || ip link show up; }"
|
||||||
cmd="ifconfig"
|
|
||||||
else
|
else
|
||||||
cmd="{ ifconfig -a || ip link show; }"
|
cmd="{ ifconfig -a || ip link show; }"
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user