3 # Module load/unload script for use with SysV-style /etc/init.d/ systems.
4 # On a Debian system, copy this to /etc/init.d/dt3155 and then run
5 # /usr/sbin/update-rc.d dt3155 defaults 55
6 # to create the appropriate /etc/rc?.d/[SK]55dt3155 start/stop links.
7 # (The "55" is arbitrary but is what I use to load this rather late.)
9 # Andy Dougherty Feb 22 2000 doughera@lafayette.edu
11 # Lafayette College, Easton PA 18042
14 PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
16 # Edit to point to your local copy.
17 FILE=/usr/local/lib/modules/dt3155/dt3155.o
19 DESC="dt3155 Frame Grabber module"
22 if test ! -f $FILE; then
23 echo "Unable to locate $FILE"
31 echo -n "Loading $DESC "
32 if /sbin/insmod -v -f $FILE; then
33 major=`grep $DEV /proc/devices | awk "{print \\$1}"`
35 mknod /dev/dt3155a c $major 0
36 mknod /dev/dt3155b c $major 1
37 chmod go+rw /dev/dt3155?
40 echo "$FILE not loaded."
44 echo -n "Unloading $DESC: "
45 if /sbin/rmmod $NAME ; then
48 echo "$DEV not removed"
54 echo "Usage: /etc/init.d/$NAME {start|stop}"