2920a32c71
VIEW-DEINSTALL to the INSTALL/DEINSTALL scripts don't cause errors.
15 lines
328 B
Bash
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
|