File: approx.postrm

package info (click to toggle)
approx 4.5-1%2Bsqueeze1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 428 kB
  • ctags: 683
  • sloc: ml: 1,957; sh: 45; makefile: 36
file content (23 lines) | stat: -rw-r--r-- 320 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/sh -e

remove_inetd() {
    if [ -x "$(command -v update-inetd)" ]; then
        update-inetd --remove "^.*approx"
    fi
}

remove_cache() {
    rm -rf /var/cache/approx
}

case "$1" in
    remove)
        remove_inetd
        ;;
    purge)
        remove_inetd
        remove_cache
        ;;
esac

#DEBHELPER#