From 6ce0311f6d75f144133a1cef9ab1c5aa5fe9c394 Mon Sep 17 00:00:00 2001 From: thetechprepper Date: Thu, 16 Apr 2026 14:18:19 -0700 Subject: [PATCH] et-wwv - Initial support for a simple utility to set the system clock to the top of the minute --- scripts/install-et-wwv.sh | 32 ++++++++++++++++++++++++++++++++ scripts/install.sh | 5 ++++- tests/test-et-wwv.sh | 7 +++++++ 3 files changed, 43 insertions(+), 1 deletion(-) create mode 100755 scripts/install-et-wwv.sh create mode 100755 tests/test-et-wwv.sh diff --git a/scripts/install-et-wwv.sh b/scripts/install-et-wwv.sh new file mode 100755 index 0000000..64d2f75 --- /dev/null +++ b/scripts/install-et-wwv.sh @@ -0,0 +1,32 @@ +#!/bin/bash +# +# Author : Gaston Gonzalez +# Date : 16 April 2026 +# Purpose : Install et-wwv +set -e +trap 'last_command=$current_command; current_command=$BASH_COMMAND' DEBUG +trap 'et-log "\"${last_command}\" command failed with exit code $?."' ERR + +. ./env.sh +. ../overlay/opt/emcomm-tools/bin/et-common + +APP=et-wwv +REPO=https://github.com/thetechprepper/et-wwv.git +REPO_DIR="${ET_SRC_DIR}/${APP}" + +CWD_DIR=`pwd` + +if [[ ! -e "${REPO_DIR}" ]]; then + et-log "Cloning ${APP} repository..." + cd ${ET_SRC_DIR} && git clone ${REPO} +fi + +et-log "Building ${APP}..." +cd ${REPO_DIR} && ./build.sh + +mkdir -p "/opt/${APP}/bin" +cp build/et-wwv /opt/${APP}/bin/ + +stow -v -d /opt ${APP} -t /usr/local + +cd ${CWD_DIR} diff --git a/scripts/install.sh b/scripts/install.sh index 8d852ad..26bcc19 100755 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -2,7 +2,7 @@ # # Author : Gaston Gonzalez # Date : 16 March 2024 -# Updated : 27 March 2026 +# Updated : 16 April 2026 # Purpose : Main installer for EmComm Tools Community (ETC) . ./env.sh @@ -112,3 +112,6 @@ exitIfNotRoot # Install WSJT-X (FT8) ./install-wsjtx.sh + +# Install simple WWV util +./install-et-wwv.sh diff --git a/tests/test-et-wwv.sh b/tests/test-et-wwv.sh new file mode 100755 index 0000000..16f2948 --- /dev/null +++ b/tests/test-et-wwv.sh @@ -0,0 +1,7 @@ +#!/bin/bash +# Author : Gaston Gonzalez +# Date : 16 April 2026 +# Purpose : Test et-wwv installation + +OUT=$(which et-wwv) +exit $?