examples/test_copcican_comedi/insert.sh
author Christian Taedcke <hacking@taedcke.com>
Mon, 23 Jan 2012 08:43:13 +0100
changeset 699 c26ea35559f8
parent 629 b9274b595650
permissions -rw-r--r--
dcf.c:
- removed inline definition of dcf variable, which is not allowed on many c compilers.
- removed SaveNode() call using ifdef, because not all canopen devices support this feature.
Later on it should be possible to enable this for each dcf entry using objdictedit.
- fixed bug when dereferencing an dcf entry from the object dictionary.
#!/bin/sh

module="test_copcican_comedi"
device="test_copcican_comedi"
mode="664"

# insert neccessary modules
/sbin/insmod ../../drivers/can_copcican_comedi/can_copcican_comedi.ko
/sbin/insmod ../../src/canfestival.ko

# insert module with all arguments we got
# and use a pathname, as newer modutils don't look in . by default
/sbin/insmod ./$module.ko $* || exit 1

# stale nodes and device files are created by COMEDI

rmmod $module
rmmod canfestival
rmmod can_copcican_comedi