examples/test_copcican_comedi/insert.sh
author fbeaulier
Mon, 29 Aug 2011 17:31:55 +0200
changeset 665 90e6cf84a0d7
parent 629 b9274b595650
permissions -rw-r--r--
patch from Christian Taedcke <hacking@taedcke.com> : fix-wrong-resetSDOline-for-sdo-timeout.patch
FIXED: - The sdo line must not be closed at the end of SDOTimeoutAlarm() if the same sdo line is closed and reopened for a new transfer inside the callback. (Patch from Jaroslav Fojtik)
#!/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