summaryrefslogtreecommitdiff
path: root/comms/efax/DEINSTALL
blob: 948e9e1e29d7cc2f473f89c5123cc96122bd4733 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/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