preinst is in grub-coreboot 2.02~beta2-36ubuntu3.
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 | #!/bin/sh
set -e
case "$1" in
install|upgrade)
if dpkg --compare-versions "$2" lt 1.98+20100804-2 && \
test -h /etc/kernel/postrm.d/zz-update-grub; then
rm -f /etc/kernel/postrm.d/zz-update-grub
fi
;;
esac
# Automatically added by dh_installdeb
dpkg-maintscript-helper dir_to_symlink /usr/share/doc/grub-coreboot grub-common 1.99-1~ -- "$@"
# End automatically added section
exit 0
|