This file is indexed.

preinst is in exabgp 3.4.13-1.

This file is a maintainer script. It is executed when installing (*inst) or removing (*rm) the package.

The actual contents of the file can be viewed below.

 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/sh

set -e

if dpkg-maintscript-helper supports mv_conffile 2>/dev/null; then
    for f in processes/dynamic-1.sh processes/watchdog-1.sh processes/healthcheck.py; do
        if ! egrep -q "$f" /etc/exabgp/exabgp.conf 2> /dev/null ; then
            dpkg-maintscript-helper rm_conffile "$f" -- "$@" ; fi
    done
    dpkg-maintscript-helper rm_conffile /etc/default/exabgp 3.4.9-0~ -- "$@"
    dpkg-maintscript-helper rm_conffile /etc/exabgp/exabgp.conf 3.4.9-0~ -- "$@"
fi

# Automatically added by dh_installinit
if [ "$1" = install ] || [ "$1" = upgrade ]; then
	if [ -e "/etc/init.d/exabgp" ] && [ -L "/etc/init.d/exabgp" ] \
	   && [ $(readlink -f "/etc/init.d/exabgp") = /lib/init/upstart-job ]
	then
		rm -f "/etc/init.d/exabgp"
	fi
fi
# End automatically added section


exit 0