Draft: [udev] Fix uaccess and add plugdev group
This MR tries to do 2 things:
- It fixes a bug in the uaccess rules that makes the rule only work if the device is already connected at login, not if (re)plugged in later. Renaming the udev rules from 88-xxx to 60-xxx fixes this, this is also aligned with the naming used in other SDR device rules. This bug is already present in Bookworm, maybe sooner (probably since the introduction of uaccess). There is no bug report associated, should i open one first ?
- It adds the plugdev group to the udev rules. This is useful when remote accessing devices or for some scripted / automated use. This is also coherent with how it is done in other SDR devices.
This MR is in draft as i don't understand all the dpkg-divert stuff coming from the move from /lib/udev to /usr/lib/udev. As the new 60-bladerf-xxx rules never existed in the old /lib/udev path probably libbladerf2.postinst/.postrm/.preinst could now be removed.
Edited by Martin Herren