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
+21
View File
@@ -199,6 +199,27 @@ load or an antenna:
|------|--------|-------|--------|--------------|------------------------|-------|
| | | | | | | |
## radio unconfigure
After `radio configure` (and `radio configure --flrig`, to check the
autostart goes too), with the programs quit:
1. Run `radio unconfigure`, and answer y to some files and n to others.
`systemctl --user status hampack-rigctld` says there's no such unit, and
`~/.config/autostart/hampack-flrig.desktop` is gone.
2. Open each program you said y to: its rig and sound settings are as they
were before `radio configure`, and its other settings are as you left them.
QLog still opens its log, with the contacts it had then.
3. Graywolf (if you said y to it) is running again after `radio unconfigure`
stopped it with sudo, with its channels' PTT as before.
4. Unplug the radio and plug it in again: nothing is set up, and
`journalctl --user -u hampack-radio-plugged` says why. Run `radio
configure`, then unplug and plug in another radio it knows: that's set up.
| Date | Commit | Radio | rigctld removed | Settings put back | Not set up when plugged in | Notes |
|------|--------|-------|-----------------|-------------------|----------------------------|-------|
| | | | | | | |
## Pairing radios with sound cards
- Two radios plugged in at once: each gets its own sound card.