#!/bin/bash

cd /etc/hotplug
. hotplug.functions

load_module () {
    MODULE=$1
    if ! $(grep -q "^$MODULE " /proc/modules); then
       debug_mesg "loading ... $MODULE"
       if $MODPROBE -n $MODULE >/dev/null 2>&1 &&
           ! $MODPROBE $MODULE >/dev/null 2>&1 ; then
           mesg "... can't load module $MODULE"
       fi
    else
       debug_mesg "$MODULE allready loaded"
    fi
}

debug_mesg "Load scsimon"
load_module scsimon

