blob: 518a22ac7a9b80b0afc3387f197af86343b9cad2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
# iwpriv completion -*- shell-script -*-
_comp_cmd_iwpriv()
{
local cur prev words cword comp_args
_comp_initialize -- "$@" || return
case $prev in
roam)
_comp_compgen -- -W 'on off'
return
;;
port)
_comp_compgen -- -W 'ad-hoc managed'
return
;;
esac
if ((cword == 1)); then
if [[ $cur == -* ]]; then
_comp_compgen -- -W '--help --version'
else
_comp_compgen_available_interfaces -w
fi
else
_comp_compgen -- -W '--all roam port'
fi
} &&
complete -F _comp_cmd_iwpriv iwpriv
# ex: filetype=sh
|