5 cur="${COMP_WORDS[COMP_CWORD]}"
6 prev="${COMP_WORDS[COMP_CWORD-1]}"
10 RTC_DEVS=$(cd /sys/class/rtc/ && echo *)
11 COMPREPLY=( $(compgen -W "$RTC_DEVS" -- $cur) )
15 COMPREPLY=( $(compgen -W "standby mem disk off no on disable show" -- $cur) )
19 COMPREPLY=( $(compgen -W "seconds" -- $cur) )
23 COMPREPLY=( $(compgen -W "time_t" -- $cur) )
27 COMPREPLY=( $(compgen -W "YYYYMMDDhhmmss" -- $cur) )
30 '-h'|'--help'|'-V'|'--version')
45 COMPREPLY=( $(compgen -W "${OPTS[*]}" -- $cur) )
48 complete -F _rtcwake_module rtcwake