File: postrm

package info (click to toggle)
gnarwl 3.6.dfsg-14
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 880 kB
  • sloc: ansic: 1,191; makefile: 119; sh: 71; php: 44
file content (19 lines) | stat: -rw-r--r-- 290 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/sh

set -e

CONFIGFILE="/etc/gnarwl.cfg"

#DEBHELPER#

if [ "$1" = "purge" ]; then
    for ext in '~' '%' .bak .ucf-new .ucf-old .ucf-dist;  do
        rm -f $CONFIGFILE$ext
    done

    rm -f $CONFIGFILE

    if which ucf >/dev/null; then
        ucf --purge $CONFIGFILE
    fi
fi