#! /bin/sh

. "`dirname $0`/rcdefs"

case "$1" in
  start)
    Print -n "Starting NFS daemon... "
    ModuleInsert nfsd
    ${NET}/rpc.mountd
    ${NET}/rpc.nfsd ${KNFSD_OPTIONS}
    ${NET}/exportfs -a
    Print "done."
    ;;
  stop)
    Print -n "Stopping NFS daemon... "
    Terminate rpc.nfsd
    Terminate rpc.mountd
    ModuleRemove nfsd
    Print "done."
    ;;
  *)
    Usage "$0"
    exit 1
esac

exit 0
