Debian Codegraph @

debian/postrm

raw
1 #!/bin/sh
2
3 set -e
4
5 case "$1" in
6 abort-install | remove | abort-upgrade | upgrade | failed-upgrade | disappear)
7 ;;
8 purge)
9 # If netbase is not installed, then we don't need to do the remove.
10 if command -v update-inetd >/dev/null 2>&1; then
11 update-inetd --remove "rstatd .* /usr/sbin/rpc.rstatd"
12 fi
13 ;;
14 *)
15 echo "$0: incorrect arguments: $*" >&2
16 exit 1
17 ;;
18 esac
19
20 #DEBHELPER#