mirror of
https://github.com/thetechprepper/emcomm-tools-os-community.git
synced 2026-09-17 15:41:44 -04:00
et-wwv - Added et-wwv-wrapper
This commit is contained in:
+19
@@ -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}"
|
||||
Reference in New Issue
Block a user