~ubuntu-branches/debian/sid/grub2/sid-200907171837

« back to all changes in this revision

Viewing changes to debian/grub-common.preinst

  • Committer: Bazaar Package Importer
  • Author(s): Robert Millan
  • Date: 2009-07-02 13:23:51 UTC
  • mfrom: (1.1.10 upstream)
  • Revision ID: james.westby@ubuntu.com-20090702132351-tanpn0ryyijp93gu
Tags: 1.96+20090702-1
* New SVN snapshot.
* rules: Remove duplicated files in sparc64-ieee1275 port.
* rules: Comment out -DGRUB_ASSUME_LINUX_HAS_FB_SUPPORT=1 setting.  We'll
  re-evaluate using it when it's more mature.  (Closes: #535026).

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/bash -e
 
2
 
 
3
case "$1" in
 
4
  install|upgrade)
 
5
 
 
6
    if [ -n "$2" ] && dpkg --compare-versions $2 lt 1.96+20090521-1 ; then
 
7
        if [ -f /etc/grub.d/10_hurd ] && [[ `dpkg --print-architecture` != hurd-* ]] ; then
 
8
          rm /etc/grub.d/10_hurd
 
9
        fi
 
10
        if [ -f /etc/grub.d/10_freebsd ] && [[ `dpkg --print-architecture` != kfreebsd-* ]] ; then
 
11
           rm /etc/grub.d/10_freebsd
 
12
        fi
 
13
        if [ -f /etc/grub.d/10_linux ] && ( [[ `dpkg --print-architecture` = hurd-* ]] || [[ `dpkg --print-architecture` = kfreebsd-* ]] ) ; then
 
14
           rm /etc/grub.d/10_linux
 
15
        fi
 
16
    fi
 
17
  ;;
 
18
  abort-upgrade)
 
19
  ;;
 
20
  *)
 
21
    echo "postinst called with unknown argument \`$1'" >&2
 
22
    exit 1
 
23
  ;;
 
24
esac
 
25
 
 
26
# dh_installdeb will replace this with shell code automatically
 
27
# generated by other debhelper scripts.
 
28
 
 
29
#DEBHELPER#
 
30
 
 
31
exit 0