Let you key a radio through a CM108 sound card's PTT line
Dire Wolf, Graywolf and others key a radio through a CM108-family sound card (a Digirig, an AIOC) by setting a GPIO pin through its hidraw device, which only root can open otherwise. Dire Wolf's own rule gives it to the audio group, which most Arch users aren't in, and shouldn't need to be. udev/70-hampack-cm108.rules tags those devices uaccess instead, so whoever is at the desktop can use them, as they can the sound card. It matches the devices Dire Wolf 1.8 treats as CM108-compatible, and no other C-Media devices. update.sh installs it in /etc/udev/rules.d when it changes, and reloads and re-applies udev's rules; hampackremove removes it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
fee5ce341a
commit
5f15ff3821
@@ -266,6 +266,13 @@ if [ -f "$RIGCTLD_UNIT" ]; then
|
||||
systemctl --user daemon-reload 2> /dev/null
|
||||
fi
|
||||
|
||||
# The udev rules update.sh installed
|
||||
UDEV_RULES="${HAMPACK_UDEV_RULES_DIR:-/etc/udev/rules.d}/70-hampack-cm108.rules"
|
||||
if [ -e "$UDEV_RULES" ]; then
|
||||
echo "Removing HamPack's udev rules..."
|
||||
sudo rm -f "$UDEV_RULES" && sudo udevadm control --reload-rules
|
||||
fi
|
||||
|
||||
# The flrig autostart entry `radio configure --flrig` added, marked as HamPack's
|
||||
FLRIG_AUTOSTART="${XDG_CONFIG_HOME:-$HOME/.config}/autostart/hampack-flrig.desktop"
|
||||
if grep -qx 'X-HamPack=radio configure --flrig' "$FLRIG_AUTOSTART" 2> /dev/null; then
|
||||
|
||||
Reference in New Issue
Block a user