7 # insert neccessary modules
8 /sbin/insmod ../../drivers/can_virtual_kernel/can_virtual.ko
9 /sbin/insmod ../../src/canfestival.ko
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
19 major=$(awk "\$2==\"$device\" {print \$1; exit}" /proc/devices)
20 mknod /dev/${device} c $major 0
22 # give appropriate group/permissions, and change the group.
23 # Not all distributions have staff, some have "wheel" instead.
25 grep -q '^staff:' /etc/group || group="wheel"
26 chgrp $group /dev/${device}
27 chmod $mode /dev/${device}