examples/test_copcican_comedi/insert.sh
author Edouard Tisserant
Thu, 24 Jan 2019 13:53:01 +0100
changeset 808 de1fc3261f21
parent 629 b9274b595650
permissions -rw-r--r--
Adding -fPIC isn't necessary of xeno-config is set correctly. Backed out changeset b9f1fcda7d30
#!/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