disable and enable wireguard clients

This commit is contained in:
shelleycat485 2020-10-21 22:35:29 +01:00
parent 63733b44a5
commit 9dd67114f8
6 changed files with 272 additions and 15 deletions

View file

@ -4,8 +4,8 @@ _pivpn()
COMPREPLY=()
cur="${COMP_WORDS[COMP_CWORD]}"
prev="${COMP_WORDS[COMP_CWORD-1]}"
dashopts="-a -c -d -l -qr -r -h -u -up -bk"
opts="add clients debug list qrcode remove help uninstall update backup"
dashopts="-a -c -d -l -qr -r -h -u -up -bk -dis -ena"
opts="add clients debug list qrcode remove help uninstall update backup disable enable"
if [ "${#COMP_WORDS[@]}" -eq 2 ]
then
if [[ ${cur} == -* ]] ; then