
| Current Path : /proc/thread-self/root/usr/share/bash-completion/completions/ |
Linux ift1.ift-informatik.de 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 |
| Current File : //proc/thread-self/root/usr/share/bash-completion/completions/openvpn |
# bash completion for openvpn init.d script
# Written by Alberto Gonzalez Iniesta <agi@inittab.org>
_openvpn()
{
local cur
COMPREPLY=()
cur=${COMP_WORDS[COMP_CWORD]}
if [ $COMP_CWORD -eq 1 ] ; then
COMPREPLY=( $( compgen -W '$( /etc/init.d/openvpn 2>&1 \
| cut -d"{" -f2 | tr -d "}" | tr "|" " " )' -- $cur ) )
else
COMPREPLY=( $( compgen -W '$( command ls /etc/openvpn/*.conf 2>/dev/null \
| sed -e 's%/etc/openvpn/%%' -e 's/\.conf//' )' -- $cur ) )
fi
}
complete -F _openvpn /etc/init.d/openvpn