#! /bin/sh

. "`dirname $0`/rcdefs"

case "`${BIN_UNAME} -r`" in
	0.* | 1.* | 2.0.*)
	;;
	*)
	BIN_KERNELD="/sbin/kerneld.not"
	;;
esac

case "$1" in
  start)
    # Load kernel modules. Some are pre-loaded to save time.
    ModuleInsert unix

    [ -x ${BIN_KERNELD} ] && ${BIN_KERNELD} ${KERNELD_OPTIONS}

    #/sbin/modprobe -a -t boot
    ;;
  stop)
    Print -n "Stopping kerneld... "
    [ -x ${BIN_KERNELD} ] && Terminate kerneld
    ModuleRemove unix
    Print "done."
    ;;
  *)
    Usage "$0"
    exit 1
esac

exit 0
