#!/bin/sh 
# Install the mda driver,
# including creating device nodes.
#
# This script written by Alessandro Rubini and appeared in Linux Journal
# April 1996
#
FILE="mda.o"
DEV="mono"

# Load the module
/sbin/insmod -f $FILE $*  || { echo "$DEV driver not inserted" ; exit 1 }

# retrieve major just assigned 
MAJOR=`grep $DEV /proc/devices | awk "{print \\$1}"` 
 
# make device nodes 
cd /dev 
rm -f $DEV
mknod $DEV c $MAJOR 0 
 
# edit this line to suit your needs 
chmod go+rw $DEV

