prerm is in pxe 1.4.2-7ubuntu1.
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 | #!/bin/sh
set -e
if [ "$1" = failed-upgrade ]
then
# The old version's prerm failed to work. This may be due to
# http://bugs.debian.org/376501 so we try to kill the daemon
# by hand here.
if [ -e /var/run/pxe.pid ]
then
kill -s KILL `cat /var/run/pxe.pid` || true
rm -f /var/run/pxe.pid
exit 0
fi
fi
# Automatically added by dh_installinit
if [ -x "/etc/init.d/pxe" ]; then
invoke-rc.d pxe stop || exit $?
fi
# End automatically added section
|