File: postrm

package info (click to toggle)
dma 0.14-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 440 kB
  • sloc: ansic: 3,087; makefile: 127; sh: 90; yacc: 89; lex: 24
file content (22 lines) | stat: -rw-r--r-- 334 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/sh

set -e

case "$1" in
    purge)
	if which ucfr >/dev/null; then
		ucfr --purge dma /etc/dma/dma.conf
	fi
	if which ucf >/dev/null; then
		ucf --purge /etc/dma/dma.conf
	fi
	if [ -d /etc/dma ] ; then
		rm -rf /etc/dma || true
	fi
	if [ -d /var/spool/dma ] ; then
		rm -rf /var/spool/dma || true
	fi
    ;;
esac

#DEBHELPER#