#!/bin/sh

case "$1" in
  start|restart)
    # Read variable for sysconfig and load all mentioned modules
    echo -n "Loading required kernel modules... "
    . /etc/sysconfig/kernel
    for I in $MODULES_LOADED_ON_BOOT ; do
#	    if ! modprobe -n $I > /dev/null 2>&1 ; then continue ; fi
	    modprobe $I;
    done
	echo "done"
    #rc_status -v1 -r
   ;;
  stop)
    # skip / nothing to do
    ;;
  status)
    #rc_failed 4
    #rc_status -v
    ;;
  *)
    echo "Usage: $0 {start|stop|status|restart}"
    exit 1
    ;;
esac
