summaryrefslogtreecommitdiff
path: root/debian/custom/usrp.hotplug
diff options
context:
space:
mode:
authorMatt Ettus2009-09-30 18:59:54 -0700
committerMatt Ettus2009-09-30 18:59:54 -0700
commit4dfa2ad7deab0a89784906b377dbea271ba08118 (patch)
tree55cdaeaf2c6cce0217a7b5acd501330accc66246 /debian/custom/usrp.hotplug
parent1e3521c90f63e70e8ec4dc97574bc8b46366fc1e (diff)
parentc88f64ad42a8473a1749275c0e579284b20eb283 (diff)
downloadgnuradio-4dfa2ad7deab0a89784906b377dbea271ba08118.tar.gz
gnuradio-4dfa2ad7deab0a89784906b377dbea271ba08118.tar.bz2
gnuradio-4dfa2ad7deab0a89784906b377dbea271ba08118.zip
Merge branch 'master' into new_eth
Diffstat (limited to 'debian/custom/usrp.hotplug')
-rw-r--r--debian/custom/usrp.hotplug47
1 files changed, 0 insertions, 47 deletions
diff --git a/debian/custom/usrp.hotplug b/debian/custom/usrp.hotplug
deleted file mode 100644
index e8b943204..000000000
--- a/debian/custom/usrp.hotplug
+++ /dev/null
@@ -1,47 +0,0 @@
-#! /bin/sh
-
-GROUP=usrp
-
-# Set the permissions for the USRP devices right.
-set_permissions() {
- if [ -f "$1" ]
- then
- if getent group $GROUP > /dev/null; then
- chmod 660 "$DEVICE"
- chown root.$GROUP "$1"
- fi
- fi
-}
-
-#
-# If we do not have /sbin/hotplug, we are being called by post-sarge udev
-# emulating hotplug. In that case, all of this is handled by our udev rules,
-# so we don't need to duplicate the work done here.
-#
-if ! [ -x /sbin/hotplug ]; then
- exit
-fi
-
-if [ "$ACTION" != "add" ]; then
- exit
-fi
-
-# FIXME: Map the USB device ID to usrper's idea of "which USRP".
-# For now, we just assume the user only has a single one.
-
-case $PRODUCT in
- # USRP without loaded firmware
- fffe/2/2 | fffe/2/4)
- sleep 1 # required on some machines
- /usr/bin/usrper load_standard_bits
- set_permissions "$DEVICE"
- ;;
-
- # USRP with loaded firmware
- fffe/2/102 | fffe/2/104)
- set_permissions "$DEVICE"
- ;;
-esac
-
-
-