pkgsrc/comms/efax/DEINSTALL

17 lines
421 B
Bash

#!/bin/sh
#
if [ -d /var/spool/efax ]; then
filecount="`find /var/spool/efax -type f 2>/dev/null | wc -l`"
if [ $filecount -eq 0 ]; then
echo "Removing empty efax spool directories..."
rm -r /var/spool/efax
fi
fi
if [ -d /var/log/efax ]; then
filecount="`find /var/log/efax -type f 2>/dev/null | wc -l`"
if [ $filecount -eq 0 ]; then
echo "Removing empty efax log directories..."
rm -r /var/log/efax
fi
fi