preinst is in readahead-fedora 2:1.5.6-5.
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 | #!/bin/sh
set -e
# If we are installing over a non-purged installation, or upgrading
# and the /var/lib directory is still around, move it to /etc
if [ "$1" = "upgrade" -o "$1" = "install" ] && [ "$2" ] \
&& [ -d /var/lib/readahead ]; then
# only move the directory if the new dir doesn't exist, just in case
if [ ! -d /etc/readahead.d ] && [ ! -e /etc/readahead.d ]; then
mv /var/lib/readahead /etc/readahead.d
fi
fi
# Automatically added by dh_installdeb
dpkg-maintscript-helper rm_conffile /etc/cron.daily/readahead 2:1.5.6-1 -- "$@"
# End automatically added section
|