preinst is in grub 0.97-29ubuntu66.
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 | #!/bin/bash
set -e
case "$1" in
install|upgrade)
if dpkg --compare-versions "$2" lt 0.97-63 && \
test -h /etc/kernel/postrm.d/zz-update-grub; then
rm -f /etc/kernel/postrm.d/zz-update-grub
fi
;;
esac
exit 0
|