Subversion Repositories f9daq

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
86 f9daq 1
#!/bin/sh
2
#
3
# a simple shell script to load the pcicc32 driver module
4
# and to install the associated device files (Hi, 2004)
5
#
6
# $Log: pcicc32_load,v $
7
# Revision 1.4  2004/08/13 19:34:36  klaus
8
# Changed to support kernels 2.6 and lesser
9
#
10
#
11
module="pcicc32"
12
device="cc32_"
13
group="root"
14
mode="666"
15
 
16
# the modulenumber must be given
17
if test $1
18
then
19
 # invoke insmod - use 'insmod -f' if the kernel did not match exactly
20
 /sbin/insmod $module.ko || /sbin/insmod $module.o || exit 1
21
 
22
 # get major number from /proc/devices
23
 major=`cat /proc/devices | awk "\\$2==\"$module\" {print \\$1}"`
24
 
25
 rm -f /dev/${device}$1
26
echo  mknod /dev/${device}$1 c $major $1
27
 mknod /dev/${device}$1 c $major $1
28
 
29
 chgrp $group /dev/${device}$1
30
 chmod $mode  /dev/${device}$1
31
else
32
 echo "usage:  pcicc32_load module_number"
33
fi
34