prerm is in tetrinetx 1.13.16-14.
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 | #!/bin/sh
set -e
ACTION=$1 ; shift
case "$ACTION" in
failed-upgrade)
VERSION=$1 ; shift
DEBVER=`echo $VERSION | cut -d- -f2`
if [ "$DEBVER" -lt "5" ]; then
# dont try to stop -> do nothing and return success.
echo -n "Version prior to 5 are not daemonized correctly: "
echo "Not running tetrinetx init script."
exit 0
fi
# else let the debhelper stuff acting.
esac
# Automatically added by dh_installinit
if [ -x "/etc/init.d/tetrinetx" ]; then
invoke-rc.d tetrinetx stop || exit $?
fi
# End automatically added section
|