summaryrefslogtreecommitdiff
path: root/comms/mgetty+sendfax/DEINSTALL
blob: 358f82dcf7537b57944ff630fc5b4b203a48bc1a (plain)
1
2
3
4
5
6
7
8
9
#!/bin/sh
#
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