preinst is in autolog 0.40-13.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 | #! /bin/sh
set -e
PATH=/bin:/usr/bin
if grep -q "#-- autolog begin" /etc/crontab; then
	echo -n Removing old autolog entry from /etc/crontab...
	cp /etc/crontab /etc/crontab.new
	sed -e '/#-- autolog begin/,/#-- autolog end/d' </etc/crontab.new >/etc/crontab
	rm /etc/crontab.new
	echo done.
fi
if [ "$1" = "upgrade" ]; then
	if [ -e /etc/cron.d/autolog ]
	then
		echo Removing old autolog entry from /etc/cron.d
		rm -f /etc/cron.d/autolog
	fi
if [ `printf %0.4s "$2"` = "0.35" ]; then
cat << EOF
  Note that autolog runs as a daemon by default starting with version 0.40 rather
  than the old cron-based method.  Please see the man page or docs if you still 
  wish to run it from cron
EOF
fi
fi
 |