aboutsummaryrefslogtreecommitdiffstats
path: root/bash-completion
diff options
context:
space:
mode:
authorThomas Weißschuh <thomas@t-8ch.de>2023-07-11 21:01:05 +0200
committerThomas Weißschuh <thomas@t-8ch.de>2023-08-02 13:51:16 +0200
commitedba74df1d20c8b99bb79670f4baf90b9e1e1328 (patch)
tree4256cd8972ba2829c3bef291105e6c5add230190 /bash-completion
parent782c6564c07a2e02c4e793ebec02bbb52b463747 (diff)
downloadutil-linux-edba74df1d20c8b99bb79670f4baf90b9e1e1328.tar.gz
lsclocks: add support for RTC
Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
Diffstat (limited to 'bash-completion')
-rw-r--r--bash-completion/lsclocks6
1 files changed, 6 insertions, 0 deletions
diff --git a/bash-completion/lsclocks b/bash-completion/lsclocks
index 30cf9c545a..7158701ea7 100644
--- a/bash-completion/lsclocks
+++ b/bash-completion/lsclocks
@@ -31,6 +31,11 @@ _lsclocks_module()
COMPREPLY=( $(compgen -o filenames -W "$clocks" -- "$cur") )
return 0
;;
+ '-x'|'--rtc')
+ clocks="$(echo /dev/rtc*)"
+ COMPREPLY=( $(compgen -o filenames -W "$clocks" -- "$cur") )
+ return 0
+ ;;
'-c'|'--cpu-clock')
_pids
return 0
@@ -48,6 +53,7 @@ _lsclocks_module()
--raw
--time
--dynamic-clock
+ --rtc
--cpu-clock
--help
--version"