[OpenAFS-devel] Re: [OpenAFS] Problems with AFS under Linux 2.4.2

Chas Williams chas@cmf.nrl.navy.mil
Tue, 13 Mar 2001 11:41:30 -0500


In message <sjmae6p66wk.fsf@indiana.mit.edu>,Derek Atkins writes:
>Well, my RedHat postinstall script does this automagically.  I would
>hope that more people use the OpenAFS packages as time goes on.  Indeed,
>I'm hoping that various vendors will start to ship OpenAFS.
>
>But you're also right, a quick change to rc.afs could do:
>
>if [ ! -d /afs ]; then
>  mkdir /afs
>fi

i would prefer:

if [ -f /usr/vice/etc/cacheinfo ] ; then
	$afsmntpt = `awk -F: '{print $1}' /usr/vice/etc/cacheinfo`
	if [ test -z "$afsmntpt" ] ; then
		echo cacheinfo misconfigured
		exit
	else
		if [ ! -d $afsmntpt ]; then
		  mkdir $afsmntpt
		fi
	fi
else
	echo cacheinfo missing
	exit
fi