#!/bin/sh 
# Install the mda driver,
# including creating device nodes.
#
# This script based on one written by Alessandro Rubini that appeared in 
# Linux Journal April 1996
#
FILE="mda.o"
DEV="mono"
OPTIONS="" # Add console=1 or mem=4 as required

# Load the module
/sbin/insmod -f $FILE $OPTIONS $*  || { 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
