pkgsrc/comms/mgetty+sendfax/DEINSTALL
jlam 2920a32c71 Prepare for pkgviews by making sure that passing VIEW-INSTALL or
VIEW-DEINSTALL to the INSTALL/DEINSTALL scripts don't cause errors.
2003-08-30 20:22:49 +00:00

15 lines
328 B
Bash

#!/bin/sh
#
# $NetBSD: DEINSTALL,v 1.4 2003/08/30 20:22:50 jlam Exp $
case ${STAGE} in
DEINSTALL)
if [ -d /var/spool/fax ]; then
filecount="`${FIND} /var/spool/fax -type f 2>/dev/null | wc -l`"
if [ $filecount -eq 0 ]; then
${ECHO} "Removing empty fax spool directories..."
${RM} -r /var/spool/fax
fi
fi
;;
esac