#!/bin/sh PKGNAME=$1 TARGET=$2 RMDIR=/bin/rmdir if [ $# -ne 2 ]; then echo "Usage: $0 [PKGNAME] [DEINSTALL | POST-DEINSTALL]" exit 1 fi if [ "$TARGET" = POST-DEINSTALL ]; then for i in /var/db/aox/jail /var/db/aox/messages /var/run/aox; do ${RMDIR} ${i} 2>/dev/null done ${RMDIR} /var/db/aox 2>/dev/null fi exit 0