diff options
Diffstat (limited to 'comms/mgetty+sendfax/DEINSTALL')
-rw-r--r-- | comms/mgetty+sendfax/DEINSTALL | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/comms/mgetty+sendfax/DEINSTALL b/comms/mgetty+sendfax/DEINSTALL index 5c99803b1ba..0b86b3699ee 100644 --- a/comms/mgetty+sendfax/DEINSTALL +++ b/comms/mgetty+sendfax/DEINSTALL @@ -1,10 +1,15 @@ #!/bin/sh # +# $NetBSD: DEINSTALL,v 1.4 2003/08/30 20:22:50 jlam Exp $ -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 +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 -fi + ;; +esac |