source: grub-pc/trunk/fuentes/debian/postrm.in @ 22

Last change on this file since 22 was 22, checked in by mabarracus, 4 years ago

updated version and apply net.ifnames=0 into debian/rules

File size: 1.7 KB
Line 
1#!/bin/sh
2set -e
3
4case "$1" in
5  purge)
6    rm -f /etc/default/grub
7
8    if which ucf >/dev/null ; then
9        ucf --purge /etc/default/grub
10    fi
11    if which ucfr >/dev/null ; then
12        ucfr --purge @PACKAGE@ /etc/default/grub || true
13    fi
14
15    case @PACKAGE@ in
16      grub-pc)
17        # debconf could have been purged
18        if [ -e /usr/share/debconf/confmodule ] ; then
19          . /usr/share/debconf/confmodule
20        fi
21
22        db_input high grub-pc/postrm_purge_boot_grub || true
23        db_go || true
24        db_get grub-pc/postrm_purge_boot_grub || true
25        if [ "$RET" = "true" ] ; then
26          rm -f /boot/grub/grub.cfg \
27                /boot/grub/ascii.pf2 \
28                /boot/grub/unicode.pf2 \
29                /boot/grub/moreblue-orbit-grub.png \
30                /boot/grub/*.mod \
31                /boot/grub/*.lst \
32                /boot/grub/*.img \
33                /boot/grub/efiemu32.o \
34                /boot/grub/efiemu64.o \
35                /boot/grub/device.map \
36                /boot/grub/grubenv \
37                /boot/grub/installed-version \
38                /boot/grub/.background_cache.jpeg \
39                /boot/grub/.background_cache.png \
40                /boot/grub/.background_cache.tga || true
41          rm -rf /boot/grub/locale
42          rmdir --ignore-fail-on-non-empty /boot/grub || true
43        fi
44      ;;
45
46      grub-efi-ia32|grub-efi-amd64)
47        rm -f /boot/grub/unicode.pf2
48      ;;
49    esac
50
51  ;;
52  remove|upgrade|failed-upgrade|abort-upgrade|abort-install)
53  ;;
54  *)
55    echo "postrm called with unknown argument \`$1'" >&2
56    exit 1
57  ;;
58esac
59
60# dh_installdeb will replace this with shell code automatically
61# generated by other debhelper scripts.
62
63#DEBHELPER#
64
65exit 0
Note: See TracBrowser for help on using the repository browser.