1
# Red Hat & Debian GNU/Linux if{up,down} completion
3
[ $USERLAND = GNU ] && { have ifup || have ifdown; } &&
9
_get_comp_words_by_ref cur
11
if [ $COMP_CWORD -eq 1 ]; then
12
_configured_interfaces
13
COMPREPLY=( $(compgen -W '${COMPREPLY[@]}' -- "$cur") )
18
complete -F _ifupdown ifup ifdown
19
[ $USERLAND = GNU ] && have ifstatus && complete -F _ifupdown ifstatus
24
# sh-indent-comment: t
25
# indent-tabs-mode: nil
27
# ex: ts=4 sw=4 et filetype=sh