#!/bin/sh #---------------------------------------------------------------------------- # /var/install/bin/chronyd-show-info # Creation : 2023-01-06 hbfl # Last update: $Id$ # # Copyright (c) 2022-@@YEAR@@ Holger Bruenjes, holgerbruenjes(at)gmx(dot)net # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. #---------------------------------------------------------------------------- package_name=chronyd # include eislib . /var/install/include/eislib # --------------------------------------------------------------------------- # main # --------------------------------------------------------------------------- time_status() { mecho --info "Time status" echo /usr/bin/timedatectl status echo anykey } # --------------------------------------------------------------------------- # main # --------------------------------------------------------------------------- sources_status() { mecho --info "Chronyd sources" echo /usr/bin/chronyc sources echo anykey } # --------------------------------------------------------------------------- # main # --------------------------------------------------------------------------- main() { case ${1} in status) time_status ;; sources) sources_status ;; esac } # --------------------------------------------------------------------------- # call function main # --------------------------------------------------------------------------- main "${@}" # --------------------------------------------------------------------------- # end # ---------------------------------------------------------------------------