et-wwv - Initial support for a simple utility to set the system clock to the top of the minute

This commit is contained in:
thetechprepper
2026-04-16 14:18:19 -07:00
parent 1eaf0850df
commit 6ce0311f6d
3 changed files with 43 additions and 1 deletions
+32
View File
@@ -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}
+4 -1
View File
@@ -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
+7
View File
@@ -0,0 +1,7 @@
#!/bin/bash
# Author : Gaston Gonzalez
# Date : 16 April 2026
# Purpose : Test et-wwv installation
OUT=$(which et-wwv)
exit $?