File: postrm

package info (click to toggle)
cpu 1.4.3-16
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,668 kB
  • sloc: sh: 7,522; ansic: 7,395; makefile: 117
file content (18 lines) | stat: -rw-r--r-- 408 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#! /bin/sh
set -e

case "$1" in
    purge)
        if which ucf >/dev/null; then
            ucf --purge /etc/cpu/cpu.conf
        fi
        rm -f /etc/cpu/cpu.conf
        for ext in '~' '%' .bak .ucf-new .ucf-old .ucf-dist;  do
            rm -f /etc/cpu/cpu.conf$ext
        done
        [ -d /etc/cpu ] && rmdir /etc/cpu || true
    ;;
esac

# This will be auto-generated db_purge (debconf)
#DEBHELPER#