Undo radio configure with radio unconfigure

Stop and remove the hampack-rigctld service and HamPack's flrig autostart,
and offer to put back each file radio configure backed up, from its oldest
backup. What's there now is backed up first, databases are copied through
SQLite, running programs are left alone, and --auto doesn't set a radio up
again until radio configure is run.

Backups made in the same second no longer overwrite each other.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
David Young
2026-11-29 12:34:41 -07:00
co-authored by Claude Opus 5.5
parent 8096dcc97f
commit ad57b6b1a4
5 changed files with 295 additions and 7 deletions
+2 -4
View File
@@ -9,7 +9,8 @@ Find the radios plugged into USB and set up HamPack's programs for them.
Done: `radio detect` and `radio probe`, `radios.conf`, adding you to the uucp
group (6c76f94), and `radio configure` for each of HamPack's programs that
control a radio, with rigctld started when the radio is plugged in, and
`radio configure --auto` when a radio it knows is plugged in.
`radio configure --auto` when a radio it knows is plugged in, and `radio
unconfigure` to undo it.
- [ ] Run `TEST.md` against real radios, and mark the `radios.conf` values
they confirm `# verified`. Fix or remove the ones they don't
@@ -26,6 +27,3 @@ control a radio, with rigctld started when the radio is plugged in, and
(`/dev/input/by-path`), and their sound cards by ALSA card id, so they
stay right only while each stays in its socket. Find a name that
follows the interface, or say so when you set one up
- [ ] `radio unconfigure`: stop and remove the hampack-rigctld service and
the flrig autostart, and offer to put back the settings `radio
configure` backed up