#!/bin/sh #---------------------------------------------------------------------------- # /var/install/bin/system-systemd-timesyncd # Creation : 2022-11-15 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=systemd-timesyncd # include eislib . /var/install/include/eislib # --------------------------------------------------------------------------- # main # --------------------------------------------------------------------------- time_status() { mecho --info "Time status" echo /usr/bin/timedatectl status echo anykey } # --------------------------------------------------------------------------- # main # --------------------------------------------------------------------------- sync_status() { mecho --info "Timesync status" echo /usr/bin/timedatectl timesync-status echo anykey } # --------------------------------------------------------------------------- # main # --------------------------------------------------------------------------- main() { case ${1} in status) time_status ;; timesync-status) sync_status ;; esac } # --------------------------------------------------------------------------- # call function main # --------------------------------------------------------------------------- main "${@}" # --------------------------------------------------------------------------- # end # ---------------------------------------------------------------------------