#!/bin/sh
#
# A simple startupscript to start arla for *BSD.
# 
# You must have a path that includes, modload, ld, 
# mount_xfs, and arlad.
#
# $Id: startarla.in,v 1.2 1998/01/21 03:29:22 mho Exp $
#


PATH="/sbin:/usr/sbin:/usr/bin:/bin:%bindir%"
BINDIR=%bindir%
CACHEDIR=%ARLACACHEDIR%

if [ ! -c /dev/xfs0 ] ; then
   echo "You haven't created the xfs0 device file."
   echo "Read the documentation on how to do this."
   echo "It will be something like:"
   echo 
   echo "   mknod /dev/xfs0 c <MAGIC-CHARDEV-NUMER> 0"
   echo
   exit
fi

if [ ! -b $CACHEDIR ] ; then
   mkdir $CACHEDIR
   chmod 700 $CACHEDIR
   chown root $CACHEDIR
fi

modload -e xfs_mod $BINDIR/xfs_mod.o
mount_xfs /dev/xfs0 /afs
arlad /dev/xfs0




