preinst is in firehol 1.297-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 | #!/bin/sh
set -e
if [ -f /etc/firehol/RESERVED_IPS ]; then
mv -f /etc/firehol/RESERVED_IPS /etc/firehol/RESERVED_IPS.dpkg-bak
echo
echo
echo "FireHOL does no more require the IANA Reserved IPS data file RESERVED_IPS."
echo "The existing RESERVED_IPS has been saved as RESERVED_IPS.dpkg-bak."
if [ -f /etc/firehol/RESERVED_IPS.old ]; then
mv -f /etc/firehol/RESERVED_IPS.old /etc/firehol/RESERVED_IPS.old.dpkg-bak
echo "The existing RESERVED_IPS.old has been saved as RESERVED_IPS.old.dpkg-bak."
fi
echo
elif [ -f /etc/firehol/RESERVED_IPS.old ]; then
mv -f /etc/firehol/RESERVED_IPS.old /etc/firehol/RESERVED_IPS.old.dpkg-bak
echo
echo
echo "FireHOL does no more require the IANA Reserved IPS data file RESERVED_IPS."
echo "The existing RESERVED_IPS.old has been saved as RESERVED_IPS.old.dpkg-bak."
echo
fi
|