5 # Set the permissions for the USRP devices right.
9 if getent group $GROUP > /dev/null; then
11 chown root.$GROUP "$1"
17 # If we do not have /sbin/hotplug, we are being called by post-sarge udev
18 # emulating hotplug. In that case, all of this is handled by our udev rules,
19 # so we don't need to duplicate the work done here.
21 if ! [ -x /sbin/hotplug ]; then
25 if [ "$ACTION" != "add" ]; then
29 # FIXME: Map the USB device ID to usrper's idea of "which USRP".
30 # For now, we just assume the user only has a single one.
33 # USRP without loaded firmware
35 sleep 1 # required on some machines
36 /usr/bin/usrper load_standard_bits
37 set_permissions "$DEVICE"
40 # USRP with loaded firmware
41 fffe/2/102 | fffe/2/104)
42 set_permissions "$DEVICE"