summaryrefslogtreecommitdiff
path: root/shell-completion/bash/systemd-nspawn
diff options
context:
space:
mode:
authorMartin Pitt <martin.pitt@ubuntu.com>2016-02-19 07:50:50 +0100
committerMartin Pitt <martin.pitt@ubuntu.com>2016-02-19 07:50:50 +0100
commite4d86881d5cea2d166149c80075f3ad8143c901f (patch)
tree6f78d3f4b9a823500ecfe1c34aedd36b14a61d40 /shell-completion/bash/systemd-nspawn
parent48ddca5f3559c02f06cd03006eb11c6bab1a53e6 (diff)
parente81eb2874e2aae31c0241092c1b1d57ed66f6285 (diff)
Merge pull request #2648 from keszybz/dnssec-work
Better support for DANE, shell completion
Diffstat (limited to 'shell-completion/bash/systemd-nspawn')
-rw-r--r--shell-completion/bash/systemd-nspawn5
1 files changed, 4 insertions, 1 deletions
diff --git a/shell-completion/bash/systemd-nspawn b/shell-completion/bash/systemd-nspawn
index 429e712eb3..8318f6e590 100644
--- a/shell-completion/bash/systemd-nspawn
+++ b/shell-completion/bash/systemd-nspawn
@@ -45,7 +45,10 @@ __get_env() {
}
__get_interfaces(){
- cut -f 1 -d ' ' /proc/net/dev | tail -n +3 | tr -s '\n' | tr -d ':' | xargs
+ { cd /sys/class/net && echo *; } | \
+ while read -d' ' -r name; do
+ [[ "$name" != "lo" ]] && echo "$name"
+ done
}
_systemd_nspawn() {