#! /bin/sh

. "`dirname $0`/rcdefs"

case "$1" in
  start)
    Print -n "Mounting remote file systems... "
    ModuleInsert nfs
    ${BIN_MOUNT} -a -t nfs		# This may be our /usr runtime!
    Print "done."
    ;;
  stop)
    Print "Killing remaining processes..."
    FindMounts nfs
    SendSignal TERM $list
    SleepTerm
    SendSignal KILL $list
    SleepKill

    Print -n "Unmounting remote file systems... "
    PATH=/bin:/sbin
    ${BIN_UMOUNT} -a -t nfs
    ModuleRemove nfs
    Print "done."
    ;;
  *)
    Usage "$0"
    exit 1
esac

exit 0
