summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVille Skyttä <ville.skytta@iki.fi>2013-02-04 17:27:07 +0200
committerVille Skyttä <ville.skytta@iki.fi>2013-02-04 17:27:07 +0200
commiteef7941842f309491d52a9fef457a8fbb6a4e6a2 (patch)
tree64f21ad44bf1068694e0008d2b30f5a75019593e
parent61fe8d10a8e15285e2ad152017403e8bb609614b (diff)
downloadbash-completion-eef7941842f309491d52a9fef457a8fbb6a4e6a2.tar.gz
_available_interfaces: Try with "ip link" if ifconfig is N/A also with -a.
-rw-r--r--bash_completion3
1 files changed, 1 insertions, 2 deletions
diff --git a/bash_completion b/bash_completion
index 328061a8..aa61c868 100644
--- a/bash_completion
+++ b/bash_completion
@@ -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