File: mgetty-fax.postrm

package info (click to toggle)
mgetty 1.2.1-1.1
  • links: PTS
  • area: main
  • in suites: bullseye
  • size: 5,800 kB
  • sloc: ansic: 42,691; sh: 6,513; perl: 6,234; makefile: 1,465; tcl: 756; lisp: 283
file content (26 lines) | stat: -rw-r--r-- 651 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/sh -e

case "$1" in
    purge)
        # remove the configuration files in /etc/mgetty
        for file in faxheader faxrunq.config sendfax.config; do
	    if [ -f /etc/mgetty/$file ] ; then
	    	rm -f /etc/mgetty/$file
	    fi
	    if [ -f /etc/mgetty/$file.dpkg-old ] ; then
	    	rm -f /etc/mgetty/$file.dpkg-old
	    fi
	    if [ -f /etc/mgetty/$file.dpkg-new ] ; then
	    	rm -f /etc/mgetty/$file.dpkg-new
	    fi
	done
	rmdir /etc/mgetty || true;
	rm -f /var/spool/fax/outgoing/faxqueue_done
        rmdir /var/spool/fax/outgoing /var/spool/fax || true;
        rm -rf /var/lock/fax /var/run/mgetty-fax
	;;
    *)
	;;
esac

#DEBHELPER#