mirror of
https://github.com/thetechprepper/emcomm-tools-os-community.git
synced 2026-09-17 15:41:44 -04:00
et-wwv - Initial support for a simple utility to set the system clock to the top of the minute
This commit is contained in:
Executable
+32
@@ -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
@@ -2,7 +2,7 @@
|
|||||||
#
|
#
|
||||||
# Author : Gaston Gonzalez
|
# Author : Gaston Gonzalez
|
||||||
# Date : 16 March 2024
|
# Date : 16 March 2024
|
||||||
# Updated : 27 March 2026
|
# Updated : 16 April 2026
|
||||||
# Purpose : Main installer for EmComm Tools Community (ETC)
|
# Purpose : Main installer for EmComm Tools Community (ETC)
|
||||||
|
|
||||||
. ./env.sh
|
. ./env.sh
|
||||||
@@ -112,3 +112,6 @@ exitIfNotRoot
|
|||||||
|
|
||||||
# Install WSJT-X (FT8)
|
# Install WSJT-X (FT8)
|
||||||
./install-wsjtx.sh
|
./install-wsjtx.sh
|
||||||
|
|
||||||
|
# Install simple WWV util
|
||||||
|
./install-et-wwv.sh
|
||||||
|
|||||||
Executable
+7
@@ -0,0 +1,7 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
# Author : Gaston Gonzalez
|
||||||
|
# Date : 16 April 2026
|
||||||
|
# Purpose : Test et-wwv installation
|
||||||
|
|
||||||
|
OUT=$(which et-wwv)
|
||||||
|
exit $?
|
||||||
Reference in New Issue
Block a user