629
|
1 |
#!/bin/sh
|
|
2 |
|
|
3 |
module="test_copcican_comedi"
|
|
4 |
device="test_copcican_comedi"
|
|
5 |
mode="664"
|
|
6 |
|
|
7 |
# insert neccessary modules
|
|
8 |
/sbin/insmod ../../drivers/can_copcican_comedi/can_copcican_comedi.ko
|
|
9 |
/sbin/insmod ../../src/canfestival.ko
|
|
10 |
|
|
11 |
# insert module with all arguments we got
|
|
12 |
# and use a pathname, as newer modutils don't look in . by default
|
|
13 |
/sbin/insmod ./$module.ko $* || exit 1
|
|
14 |
|
|
15 |
# stale nodes and device files are created by COMEDI
|
|
16 |
|
|
17 |
rmmod $module
|
|
18 |
rmmod canfestival
|
|
19 |
rmmod can_copcican_comedi
|