aix vfs table entry in rc script

add an entry to the aix vfs table so umount works

Change-Id: I29a27ca350b948da0283ae09df0acd30eb6384c4
Reviewed-on: http://gerrit.openafs.org/1611
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
This commit is contained in:
Derrick Brashear 2010-03-21 13:48:48 -04:00
parent 32ebc44f42
commit 38fd725920

View File

@ -97,6 +97,19 @@ for dir in `awk -F: '{print $1, $2}' /usr/vice/etc/cacheinfo`; do
fi
done
#
# Make sure afs exists in /etc/name_to_sysnum
#
if grep -s "afs" /etc/vfs > /dev/null; then
echo "Entry for afs already exists in /etc/vfs"
else
echo "Creating entry for afs in /etc/vfs"
cp /etc/vfs /etc/vfs.orig
sed '/cdrfs/i\
afs 4 none none remote' /etc/vfs > /tmp/vfs
mv /tmp/vfs /etc/vfs
fi
# Start afsd
/usr/vice/etc/afsd $OPTIONS $RMTSYS