systemd-resolve: initial shell completion
v2: - use /sys/class/net to list interfaces, also copy the same code to systemd-nspawn v3: - do not propose "any" twice for --type
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user