summaryrefslogtreecommitdiffstats
path: root/debian/preinst.in
blob: 9d67cec48b171af435a48490eea46843ddf531a0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/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

#DEBHELPER#

exit 0