summaryrefslogtreecommitdiffstats
path: root/debian/frr.prerm
blob: e0df24e10fad63e983035f70c02baa7d4282a0ce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/bash -e

. /usr/share/debconf/confmodule

if [ -n "$DEBIAN_SCRIPT_DEBUG" ]; then set -v -x; DEBIAN_SCRIPT_TRACE=1; fi
${DEBIAN_SCRIPT_TRACE:+ echo "#42#DEBUG# RUNNING $0 $*"}

# prerm remove
# old-prerm upgrade new-version
# new-prerm failed-upgrade old-version
# conflictor's-prerm remove in-favour package new-version
# deconfigured's-prerm deconfigure in-favour package-being-installed version removing conflicting-package 
case $1 in
  remove|upgrade)
	;;

  failed-upgrade)
	# If frr/really_stop was negated then this script exits with return
	# code 1 and is called again with "failed-upgrade". Well, exit again.
	exit 1
	;;

esac

#DEBHELPER#