blob: 41c1de7a9772b449a53e6ad995d8d23556020a86 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#!/bin/sh
#
# $NetBSD: DEINSTALL,v 1.2 2003/08/30 18:40:06 jlam Exp $
case "$1" in
DEINSTALL)
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
;;
esac
|