prerm is in elog 3.1.1-1-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 26 27 28 29 30 31 32 33 34 35 36 37 | #!/bin/sh
# Copyright © 2003, 2004 Recai Oktaş <roktas@omu.edu.tr>
# Copyright © 2015 Roger Kalt <roger.kalt@gmail.com>
#
# Licensed under the GNU General Public License, version 2.
# See the file `http://www.gnu.org/copyleft/gpl.txt'.
set -e
# taken from Debian's Developer's Reference, 6.4
pathfind() {
OLDIFS="$IFS"
IFS=:
for p in $PATH; do
if [ -x "$p/$*" ]; then
IFS="$OLDIFS"
return 0
fi
done
IFS="$OLDIFS"
return 1
}
# Stop daemon.
if pathfind invoke-rc.d; then
invoke-rc.d elog stop
else
if [ -x /etc/init.d/elog ]; then
/etc/init.d/elog stop
fi
fi || true
exit 0
# vim:ai:sts=8:sw=8:
|