2012-04-04 22:54:30 +03:00
|
|
|
# hwclock(8) completion -*- shell-script -*-
|
|
|
|
|
2014-02-08 15:00:10 +02:00
|
|
|
# Use of this file is deprecated. Upstream completion is available in
|
|
|
|
# util-linux >= 2.23, use that instead.
|
|
|
|
|
2012-04-04 22:54:30 +03:00
|
|
|
_hwclock()
|
|
|
|
{
|
|
|
|
local cur prev words cword
|
|
|
|
_init_completion || return
|
|
|
|
|
|
|
|
case $prev in
|
|
|
|
-h|--help|-V|--version|--date|--epoch)
|
|
|
|
return
|
|
|
|
;;
|
|
|
|
-f|--rtc|--adjfile)
|
|
|
|
_filedir
|
2013-02-02 21:01:18 +02:00
|
|
|
return
|
2012-04-04 22:54:30 +03:00
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
2013-02-02 21:01:18 +02:00
|
|
|
COMPREPLY=(
|
|
|
|
$( PATH="$PATH:/sbin" compgen -W '$( _parse_help "$1" )' -- "$cur" ) )
|
2012-04-04 22:54:30 +03:00
|
|
|
} &&
|
|
|
|
complete -F _hwclock hwclock
|
|
|
|
|
|
|
|
# ex: ts=4 sw=4 et filetype=sh
|