diff options
Diffstat (limited to 'comms')
-rw-r--r-- | comms/mgetty+sendfax/pkg/DEINSTALL | 9 | ||||
-rwxr-xr-x | comms/mgetty+sendfax/pkg/INSTALL | 12 |
2 files changed, 21 insertions, 0 deletions
diff --git a/comms/mgetty+sendfax/pkg/DEINSTALL b/comms/mgetty+sendfax/pkg/DEINSTALL new file mode 100644 index 00000000000..358f82dcf75 --- /dev/null +++ b/comms/mgetty+sendfax/pkg/DEINSTALL @@ -0,0 +1,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 diff --git a/comms/mgetty+sendfax/pkg/INSTALL b/comms/mgetty+sendfax/pkg/INSTALL new file mode 100755 index 00000000000..75db147493f --- /dev/null +++ b/comms/mgetty+sendfax/pkg/INSTALL @@ -0,0 +1,12 @@ +#!/bin/sh +# +test -d /var/spool || \ + ( mkdir /var/spool ; chmod 755 /var/spool ) +test -d /var/spool/fax || \ + ( mkdir /var/spool/fax ; chmod 755 /var/spool/fax ) +test -d /var/spool/fax/incoming || \ + ( mkdir /var/spool/fax/incoming ; chmod 755 /var/spool/fax/incoming ) +test -d /var/spool/fax/outgoing || \ + ( mkdir /var/spool/fax/outgoing ; chmod 1777 /var/spool/fax/outgoing ) +test -d /var/spool/fax/outgoing/locks || \ + ( mkdir /var/spool/fax/outgoing/locks ; chmod 777 /var/spool/fax/outgoing/locks ) |