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