3 # hotplug script for USBDUXsigma. Mon Apr 23 13:38:43 GMT 2012
8 #look for comedi config
11 if [ -e /usr/local/sbin/comedi_config ]; then
12 COMEDI_CONFIG=/usr/local/sbin/comedi_config
14 if [ -e /usr/sbin/comedi_config ]; then
15 COMEDI_CONFIG=/usr/sbin/comedi_config
17 if [ -e /sbin/comedi_config ]; then
18 COMEDI_CONFIG=/sbin/comedi_config
22 #look for the firmware
24 if [ -e /usr/share/usb/usbduxsigma_firmware.hex ]; then
25 USBDUX_FIRMWARE=/usr/share/usb/usbduxsigma_firmware.hex
27 if [ -e /usr/local/share/usb/usbduxsigma_firmware.hex ]; then
28 USBDUX_FIRMWARE=/usr/local/share/usb/usbduxsigma_firmware.hex
32 # If you have more than one device please add/uncomment
34 # just to make sure we remove the comedi device
35 $COMEDI_CONFIG -r /dev/comedi0
36 # $COMEDI_CONFIG -r /dev/comedi1
38 # connecting the comedi device comedi0 with the module usbdux
39 $COMEDI_CONFIG -i $USBDUX_FIRMWARE /dev/comedi0 usbduxsigma
40 # $COMEDI_CONFIG -i $USBDUX_FIRMWARE /dev/comedi1 usbduxsigma