Move radio's detection into radio-detect.sh, for HamPackServer to share
check / lint-and-test (push) Failing after 4m21s
check / packages (push) Successful in 24s

Finding the radios, their ports, sound cards and CM108 pins, probing them
and looking them up in radios.conf move, unchanged, from radio into
radio-detect.sh, which radio sources. It needs nothing else of HamPack
(it has parse_conf itself where lib.sh isn't loaded), so HamPackServer's
configure can keep a copy. The messages that named radio's commands take
them from RADIO_PROGRAM, RADIO_CONFIGURE and RADIO_CM108_ACCESS, whose
defaults say what they said before.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
David Young
2026-11-29 14:13:18 -07:00
co-authored by Claude Opus 5.5
parent 7697a785d3
commit a88f09a1cd
4 changed files with 552 additions and 475 deletions
+1 -1
View File
@@ -6,7 +6,7 @@
# make hooks - run `make lint test` before each commit
SCRIPTS := install.sh update.sh lib.sh install-binaries.sh install-compiled.sh \
install-flatpaks.sh install-windows-apps.sh patch-potacat.sh hampackcheck hampackremove radio \
install-flatpaks.sh install-windows-apps.sh patch-potacat.sh hampackcheck hampackremove radio radio-detect.sh \
smoketest/setup smoketest/health smoketest/lib.sh $(wildcard smoketest/scenarios/*.sh)
.PHONY: check lint test check-packages hooks