#! /bin/sh # unpublish - make a directory UNavailable for AppleShare via AUFS # Rex Sanders, US Geological Survey, Fri Nov 29 15:17:28 PST 1991 # US Government work - public domain - no copyright if [ $# -ne 1 ] then echo "Usage: unpublish AppleShare-name" >&2 exit 1 fi publish | grep ":$1:" > /dev/null if [ $? -eq 0 ] then sed -e "/:$1:/d" $HOME/.afpvols > /tmp/$$.afpvols cp /tmp/$$.afpvols $HOME/.afpvols rm /tmp/$$.afpvols else echo "unpublish: $1 not found" >&2 exit 2 fi