#! /bin/sh

. "`dirname $0`/rcdefs"

case "$1" in
  start)
    Print -n "Starting filecache... "
    ${BIN_UMOUNT} grumbeer:/usr
    ${BIN_MOUNT} grumbeer:/usr /.mnt/usr
    /.mnt/usr/local/sbin/filecache -d on
    Print "done."
    ;;
  stop)
    Print "Stopping filecache... "
    /.mnt/usr/local/sbin/filecache off
    Print "done."
    ;;
  *)
    Usage "$0"
    exit 1
esac

exit 0
