From 16ae97e8129ac21982d56ca86847f068ddf931f6 Mon Sep 17 00:00:00 2001 From: thetechprepper Date: Thu, 16 Apr 2026 18:36:24 -0700 Subject: [PATCH] et-wwv - Added et-wwv-wrapper --- .../opt/emcomm-tools/sbin/wrapper-et-wwv.sh | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100755 overlay/opt/emcomm-tools/sbin/wrapper-et-wwv.sh diff --git a/overlay/opt/emcomm-tools/sbin/wrapper-et-wwv.sh b/overlay/opt/emcomm-tools/sbin/wrapper-et-wwv.sh new file mode 100755 index 0000000..3ad58b0 --- /dev/null +++ b/overlay/opt/emcomm-tools/sbin/wrapper-et-wwv.sh @@ -0,0 +1,19 @@ +#!/bin/bash +# +# Author : Gaston Gonzalez +# Date : 16 April 2026 +# Purpose : Wrapper script for setting the system time using et-wwv +# +# Preconditions +# 1. Supported radio and audio interface are connected and properly detected +# 2. Radio is set to AM and a WWV frequency (2.5, 5, 10, 15, or 20 MHz) +# +# Postconditions +# 1. System clock is aligned to the top-of-the-minute +. /opt/emcomm-tools/bin/et-common + +exit_if_no_audio + +ALSA_DEVICE=$(/opt/emcomm-tools/bin/et-system-info et-audio-card) + +et-wwv -a --device "hw:${ALSA_DEVICE}"