From: David Schleef Date: Thu, 22 Jun 2000 19:27:55 +0000 (+0000) Subject: added pcmcia configuration scripts X-Git-Tag: r0_7_46~20 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=fdb17e2c46c4a44288e183676fc58ba6c80562e6;p=comedi.git added pcmcia configuration scripts --- diff --git a/etc/pcmcia/comedi b/etc/pcmcia/comedi new file mode 100755 index 00000000..bcd0c51b --- /dev/null +++ b/etc/pcmcia/comedi @@ -0,0 +1,55 @@ +#! /bin/sh + +if [ -r ./shared ] ; then . ./shared ; else . /etc/pcmcia/shared ; fi + +# Get device attributes +get_info $DEVICE + +# Load site-specific settings +ADDRESS="$SCHEME,$SOCKET,$INSTANCE,$HWADDR" +start_fn () { return; } +stop_fn () { return; } +. $0.opts + +RESOLV=/etc/resolv.conf + +case "$ACTION" in + +'start') + + echo /usr/sbin/comedi_config /dev/comedi0 $2 + /usr/sbin/comedi_config /dev/comedi0 $2 + + start_fn $DEVICE + ;; + +'stop') + + stop_fn $DEVICE + + ;; + +'check') + ;; + +'cksum') + chk_simple "$3,$SOCKET,$INSTANCE,$HWADDR" || exit 1 + ;; + +'restart') + test "$IPADDR" && /sbin/ifconfig $DEVICE down up + ;; + +'suspend'|'resume') + ;; + +*) + usage + ;; + +esac + +exit 0 + + + diff --git a/etc/pcmcia/comedi.conf b/etc/pcmcia/comedi.conf new file mode 100644 index 00000000..896363e8 --- /dev/null +++ b/etc/pcmcia/comedi.conf @@ -0,0 +1,16 @@ + +device "ni_mio_cs" + class "comedi" module "ni_mio_cs" + + +card "National Instruments DAQCard-AI-16XE-50" +# version "National Instruments", "*", "DAQCard-AI-16XE-50" + manfid 0x10b, 0x010d + bind "ni_mio_cs" + +#card "National Instruments DAQCard-AI-16E-4" +## version "National Instruments", "*", "DAQCard-AI-16E-4" +# manfid 0x10b, 0x010d +# bind "ni_mio_cs" + +