]> git.proxmox.com Git - mirror_frr.git/blame - debian/frr.prerm
backports: symlink identical files
[mirror_frr.git] / debian / frr.prerm
CommitLineData
4d916382
DS
1#!/bin/bash -e
2
3. /usr/share/debconf/confmodule
4
5if [ -n "$DEBIAN_SCRIPT_DEBUG" ]; then set -v -x; DEBIAN_SCRIPT_TRACE=1; fi
6${DEBIAN_SCRIPT_TRACE:+ echo "#42#DEBUG# RUNNING $0 $*"}
7
8# prerm remove
9# old-prerm upgrade new-version
10# new-prerm failed-upgrade old-version
11# conflictor's-prerm remove in-favour package new-version
12# deconfigured's-prerm deconfigure in-favour package-being-installed version removing conflicting-package
13case $1 in
14 remove|upgrade)
4d916382
DS
15 ;;
16
17 failed-upgrade)
d8e4c438 18 # If frr/really_stop was negated then this script exits with return
4d916382
DS
19 # code 1 and is called again with "failed-upgrade". Well, exit again.
20 exit 1
21 ;;
22
23esac
24
25#DEBHELPER#