update from bernd porr to use fxload to load firmware
authorFrank Mori Hess <fmhess@speakeasy.net>
Sun, 21 Dec 2003 17:30:01 +0000 (17:30 +0000)
committerFrank Mori Hess <fmhess@speakeasy.net>
Sun, 21 Dec 2003 17:30:01 +0000 (17:30 +0000)
etc/hotplug/usb/usbdux/usbdux

index fd16b841963b7efa9365f1948c2e02d3809592db..194b1eab5475011e89ecff2c8d136e1b3712b496 100755 (executable)
@@ -31,8 +31,13 @@ fi
 #
 # please modify if needed
 #
-echo "$COMEDI_CONFIG -i $USBDUX_FIRMWARE /dev/comedi0 usbdux"
-$COMEDI_CONFIG -i $USBDUX_FIRMWARE /dev/comedi0 usbdux
-#
+# firmware upload into the usb device
+fxload -v -2 -I $USBDUX_FIRMWARE
+# 
+# just to make sure we remove the comedi device
+$COMEDI_CONFIG -r /dev/comedi0
+#
+# connecting the comedi device comedi0 with the module usbdux
+$COMEDI_CONFIG /dev/comedi0 usbdux
 #
 #