diff options
author | Bjoern Buerger <b.buerger@pengutronix.de> | 2007-04-10 12:25:34 +0000 |
---|---|---|
committer | Bjoern Buerger <b.buerger@pengutronix.de> | 2007-04-10 12:25:34 +0000 |
commit | 2a324f882894e5c6b880cf27df30d314ccd47bf1 (patch) | |
tree | 3c0d822525f8af36fd89c2194311a634ba5b90cd /rules | |
parent | 70d2d88052adfec80711781af502bcece8128f0c (diff) | |
download | ptxdist-2a324f882894e5c6b880cf27df30d314ccd47bf1.tar.gz ptxdist-2a324f882894e5c6b880cf27df30d314ccd47bf1.tar.xz |
git-svn-id: https://svn.pengutronix.de/svn/ptxdist/trunks/ptxdist-trunk@7087 33e552b5-05e3-0310-8538-816dae2090ed
Diffstat (limited to 'rules')
-rw-r--r-- | rules/chrony.in | 24 | ||||
-rw-r--r-- | rules/chrony.make | 9 |
2 files changed, 33 insertions, 0 deletions
diff --git a/rules/chrony.in b/rules/chrony.in index 09e28998d..25101bac9 100644 --- a/rules/chrony.in +++ b/rules/chrony.in @@ -33,6 +33,30 @@ config CHRONY_INSTALL_CHRONY_COMMAND one given command. Note: The user needs access to the chrony.keys file. +config CHRONY_INSTALL_CHRONY_STAT + depends on CHRONY + bool + default n + prompt "Install chrony statistics helper" + help + Install a convenience wrapper in /usr/bin/chrony_stat, + which gives a short overview for your configured time sources. + + Usage /usr/bin/chrony_stat [ --full | --bool | --skew | --short-skew | --help ] + + --full or no argument: show server name and verbose status + + --bool show server name and + a) true, if timesource is currently synced + b) false otherwise + + --skew show servername and + a) estimated error, if timesource is currently synced + b) false otherwise + + --short-skew show estimated error, if timesource is currently synced + suppress all other servers + menuconfig CHRONY_INSTALL_CONFIG depends on CHRONY bool diff --git a/rules/chrony.make b/rules/chrony.make index a6818d5bf..c256f55b8 100644 --- a/rules/chrony.make +++ b/rules/chrony.make @@ -197,6 +197,15 @@ ifdef PTXCONF_CHRONY_INSTALL_CHRONY_COMMAND /usr/bin/chrony_command, n) endif +# --------------------------- +# install chrony stat convenience wrapper +# +ifdef PTXCONF_CHRONY_INSTALL_CHRONY_COMMAND + @$(call install_copy, chrony, 0, 0, 0755, \ + $(PTXDIST_TOPDIR)/generic/usr/bin/chrony_stat, \ + /usr/bin/chrony_stat, n) +endif + @$(call install_finish, chrony) |