_available_interfaces: Try with "ip link" if ifconfig is N/A also with -a.

This commit is contained in:
Ville Skyttä 2013-02-04 17:27:07 +02:00
parent 61fe8d10a8
commit eef7941842

View File

@ -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