#!/bin/sh
#
# loads driver for griefcase or for shootingback seatsale seatlease freeseats
# fingerprint scanner
#
# this is based on ibus (based on my griefcase driver, based on ece385)
# 
# put in /etc/init.d
# and symlink from /etc/rc2.d runlevel2

module="/home/mann/griefcase3.2c/drvs/2.2.5-15/biomouse.o"
# otherwise use this one.
device="biomouse"
group="sys"
mode="666"

# invoke insmod with all arguments given to us
/sbin/insmod -f $module $* || exit 1

# remove stale nodes
rm -f /dev/${device}

major=`cat /proc/devices | awk "\\$2==\"$device\" {print \\$1}"`

mknod /dev/${device} c $major 0

# give appropriate group/permissions
chgrp $group /dev/${device}
chmod $mode  /dev/${device}


