prerm is in whereami 0.3.34-0.4.
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 26 27 28 29 | #!/bin/sh
# Pre-removal script for whereami.
# $Id: whereami.prerm,v 1.4 2005/05/15 09:18:01 andrew Exp $
set -e
case "$1" in
remove|deconfigure)
set +e
[ -L /usr/doc/whereami ] && rm -f /usr/doc/whereami
[ -L /usr/sbin/whereami ] && rm -f /usr/sbin/whereami
if [ -d /etc/whereami ] ; then
PRESERVE=`pwd`
for DDD in /etc/whereami /var/lib/whereami ; do
cd ${DDD}
for F in whereiam.sh iam iwas* whereami.started dhclient3.* iwlist.*; do
[ -f ${F} ] && rm -f ${F}
done
done
cd ${PRESERVE}
fi
;;
esac
# Automatically added by dh_installinit
if [ -x "/etc/init.d/whereami" ] && [ "$1" = remove ]; then
invoke-rc.d whereami stop || exit $?
fi
# End automatically added section
|