From c2d03227e07deea8013ef55bb20a43406f25c48d Mon Sep 17 00:00:00 2001 From: Bernd Porr Date: Mon, 23 Apr 2012 12:28:13 +0100 Subject: [PATCH] Removed two scripts which are no longer used by hotplug. In the early udev days the firmware had to be uploaded by comedi_config. However now the driver requests the firmware by itself and there is no need to have dedicated scripts for every kernel module in udev. --- etc/udev/Makefile.am | 4 ++-- etc/udev/usbdux | 34 ---------------------------------- etc/udev/usbduxfast | 39 --------------------------------------- 3 files changed, 2 insertions(+), 75 deletions(-) delete mode 100755 etc/udev/usbdux delete mode 100755 etc/udev/usbduxfast diff --git a/etc/udev/Makefile.am b/etc/udev/Makefile.am index 1428082..cdfe0d1 100644 --- a/etc/udev/Makefile.am +++ b/etc/udev/Makefile.am @@ -1,10 +1,10 @@ -EXTRA_DIST = 90-comedi.rules usbdux usbduxfast +EXTRA_DIST = 90-comedi.rules if INSTALL_UDEVHOTPLUG udevrules_DATA = 90-comedi.rules -udevscripts_SCRIPTS = usbdux usbduxfast +udevscripts_SCRIPTS = else diff --git a/etc/udev/usbdux b/etc/udev/usbdux deleted file mode 100755 index dce2528..0000000 --- a/etc/udev/usbdux +++ /dev/null @@ -1,34 +0,0 @@ -#!/bin/sh -# -# hotplug script for USBDUX. Apr 21 GMT 2007 -# berndporr@f2s.com -# -# -# -#look for comedi config -COMEDI_CONFIG= -# -if [ -e /usr/local/sbin/comedi_config ]; then - COMEDI_CONFIG=/usr/local/sbin/comedi_config -fi -if [ -e /usr/sbin/comedi_config ]; then - COMEDI_CONFIG=/usr/sbin/comedi_config -fi -if [ -e /sbin/comedi_config ]; then - COMEDI_CONFIG=/sbin/comedi_config -fi -# -# -#look for the firmware -#default location -USBDUX_FIRMWARE=/lib/firmware/usbdux_firmware.hex -# -# -# -# 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 -i $USBDUX_FIRMWARE /dev/comedi0 usbdux -# -# diff --git a/etc/udev/usbduxfast b/etc/udev/usbduxfast deleted file mode 100755 index f45266d..0000000 --- a/etc/udev/usbduxfast +++ /dev/null @@ -1,39 +0,0 @@ -#!/bin/sh -# -# hotplug script for USBDUXFAST. Apr 21 2007. -# berndporr@f2s.com -# -# -# -#look for comedi config -COMEDI_CONFIG= -# -if [ -e /usr/local/sbin/comedi_config ]; then - COMEDI_CONFIG=/usr/local/sbin/comedi_config -fi -if [ -e /usr/sbin/comedi_config ]; then - COMEDI_CONFIG=/usr/sbin/comedi_config -fi -if [ -e /sbin/comedi_config ]; then - COMEDI_CONFIG=/sbin/comedi_config -fi -# -# -# default location -USBDUX_FIRMWARE=/lib/firmware/usbduxfast_firmware.hex -# -# -# -# -# -# If you have more than one device please add/uncomment -# -# just to make sure we remove the comedi device -$COMEDI_CONFIG -r /dev/comedi0 -# $COMEDI_CONFIG -r /dev/comedi1 -# -# connecting the comedi device comedi0 with the module usbdux -$COMEDI_CONFIG --read-buffer 512 -i $USBDUX_FIRMWARE /dev/comedi0 usbduxfast -# $COMEDI_CONFIG /dev/comedi1 usbduxfast -# -# -- 2.26.2