Files
HamPack/systemd/user/hampack-radio-plugged.service
T
David YoungandClaude Opus 5.5 8d15d2c81e
check / lint-and-test (push) Successful in 3m57s
check / packages (push) Successful in 24s
Set up a radio radio knows when it's plugged in, with radio configure --auto
A udev rule starts the hampack-radio-plugged user service when a USB serial
port appears, and it runs `radio configure --auto`. That sets up a radio
recognised by its USB serial number, unless the radio set up already is
plugged in, and says what it did in a desktop notification. It never asks a
radio what it is, since that may key the transmitter, and never asks for
sudo, so a running Graywolf is skipped.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 16:32:05 -07:00

11 lines
432 B
Desktop File

# Started by udev/70-hampack-radio.rules when a USB serial port appears.
# HamPack's update installs it, with HAMPACK_DIR filled in
[Unit]
Description=Set up a radio HamPack knows when it's plugged in (radio configure --auto)
# radio gives the programs the radio's sound card as PipeWire names it
After=pipewire.service pipewire-pulse.service wireplumber.service
[Service]
Type=oneshot
ExecStart=HAMPACK_DIR/radio configure --auto