diff --git a/etc/hotplug/usb/usbdux/usbdux b/etc/hotplug/usb/usbdux/usbdux index 0e467a8..e801850 100755 --- a/etc/hotplug/usb/usbdux/usbdux +++ b/etc/hotplug/usb/usbdux/usbdux @@ -1,6 +1,6 @@ #!/bin/sh # -# hotplug script for USBDUX. Mon Oct 20 10:08:09 BST 2003. +# hotplug script for USBDUX. Sat Mar 20 09:56:43 GMT 2004 # Bernd.Porr@cn.stir.ac.uk # # @@ -29,26 +29,6 @@ if [ -e /usr/local/share/usb/usbdux_firmware.hex ]; then fi # # -# in 2.6 there might be a race condition between -# the usbdevfs and this hotplug script. -# Therefore we wait a bit to make sure that /proc/bus/usb/... is there. -if ! [ -e $DEVICE ]; then -sleep 1 -fi -# -# If the device is still not existing probably the usbdevfs hasn't been -# mounted. -if ! [ -e $DEVICE ]; then - echo "usbdux hotplug: /proc/bus/usb/... does not exist" - echo "Please make sure that usbdevfs is mounted." - exit 1 -fi -# -# -# firmware upload into the usb device -fxload -v -2 -I $USBDUX_FIRMWARE -# -# # If you have more than one device please add/uncomment # # just to make sure we remove the comedi device @@ -56,7 +36,7 @@ $COMEDI_CONFIG -r /dev/comedi0 # $COMEDI_CONFIG -r /dev/comedi1 # # connecting the comedi device comedi0 with the module usbdux -$COMEDI_CONFIG /dev/comedi0 usbdux -# $COMEDI_CONFIG /dev/comedi1 usbdux +$COMEDI_CONFIG -i $USBDUX_FIRMWARE /dev/comedi0 usbdux +# $COMEDI_CONFIG -i $USBDUX_FIRMWARE /dev/comedi1 usbdux # #