diff options
Diffstat (limited to 'debian/traceroute.prerm')
-rw-r--r-- | debian/traceroute.prerm | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/debian/traceroute.prerm b/debian/traceroute.prerm new file mode 100644 index 0000000..b00d32a --- /dev/null +++ b/debian/traceroute.prerm @@ -0,0 +1,32 @@ +#!/bin/sh + +set -e + +case "${1}" in + remove|upgrade|deconfigure) + update-alternatives --remove traceroute /usr/bin/traceroute.db + + for _ALTERNATIVE in traceroute6 lft traceproto + do + update-alternatives --remove ${_ALTERNATIVE} /usr/bin/${_ALTERNATIVE}.db + done + + for _ALTERNATIVE in tcptraceroute + do + update-alternatives --remove ${_ALTERNATIVE} /usr/sbin/${_ALTERNATIVE}.db + done + ;; + + failed-upgrade) + + ;; + + *) + echo "prerm called with unknown argument \`${1}'" >&2 + exit 1 + ;; +esac + +#DEBHELPER# + +exit 0 |