5 cur="${COMP_WORDS[COMP_CWORD]}"
6 prev="${COMP_WORDS[COMP_CWORD-1]}"
11 COMPREPLY=( $(compgen -f -- $cur) )
16 RTC_DEVS=$(cd /sys/class/rtc/ && echo *)
17 COMPREPLY=( $(compgen -W "$RTC_DEVS" -- $cur) )
21 COMPREPLY=( $(compgen -W "$(rtcwake --list-modes)" -- $cur) )
25 COMPREPLY=( $(compgen -W "seconds" -- $cur) )
29 COMPREPLY=( $(compgen -W "time_t" -- $cur) )
33 COMPREPLY=( $(compgen -W "YYYYMMDDhhmmss" -- $cur) )
36 '-h'|'--help'|'-V'|'--version')
56 COMPREPLY=( $(compgen -W "${OPTS[*]}" -- $cur) )
59 complete -F _rtcwake_module rtcwake