File: approx.postrm

package info (click to toggle)
approx 5.10-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, sid
  • size: 340 kB
  • sloc: ml: 2,220; sh: 42; makefile: 32
file content (24 lines) | stat: -rw-r--r-- 324 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/sh
set -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#