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