prerm is in rbootd 2.0-10build1.
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 | #!/bin/sh
# pre remove script for Debian GNU/Linux rbootd package
set -e
if which invoke-rc.d >/dev/null 2>&1; then
invoke-rc.d rbootd stop
else
/etc/init.d/rbootd stop
fi
## Remove the local files dir if emtpy -- leave alone o/w
test ! -d /usr/local/lib/rbootd || rmdir /usr/local/lib/rbootd || true
## Remove the old doc directory
if [ \( "$1" = "upgrade" -o "$1" = "remove" \) -a -L /usr/doc/rbootd ]; then
rm -f /usr/doc/rbootd
fi
|