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
View File
@@ -77,6 +77,8 @@ A radio `radio` recognises by its USB serial number (most Icoms) is set up by it
flrig can't reach a radio through rigctld, and the two can't share its port, so `radio configure` leaves flrig alone. If you'd rather flrig controlled the radio, run `radio configure --flrig`: flrig gets the radio, and rigctld passes the other programs through it, using Hamlib's FLRig support. flrig then starts when you log in (unless you have it starting already), so it's there before the other programs; leave it running. `radio configure` without --flrig gives the radio back to rigctld, and stops flrig starting at login. `radio configure` also says which sound card is the radio's.
`radio unconfigure` undoes `radio configure`. It stops the `hampack-rigctld` service and removes it, and stops flrig starting when you log in, if HamPack set that up. Then it offers to put back each file `radio configure` backed up, from the oldest backup, which has your settings from before it first changed them. Anything you've changed in that program since is lost, so it asks about each one, and backs up what's there now first. QLog's log holds your contacts as well as its rig profiles, so putting it back loses contacts logged since; it's left as it is unless you say yes. Programs that are running are left alone. Afterwards, radios aren't set up when they're plugged in until you run `radio configure` again.
The radios it knows are in `radios.conf`. If your radio isn't recognised, or answers with something `radio` doesn't know, please open an issue with what `radio detect --probe` printed.
## Why CoreDesktop and/or Arch Linux?