source: grub-pc/trunk/fuentes/debian/grub-pc.prerm @ 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: 717 bytes
Line 
1#!/bin/bash
2set -e
3
4case "$1" in
5  remove|deconfigure)
6    . /usr/share/debconf/confmodule
7    db_get grub-pc/chainload_from_menu.lst
8    if $RET && test -e /boot/grub/menu.lst ; then
9      echo "Saving menu.lst backup in /boot/grub/menu.lst_backup_by_grub2_prerm" >&2
10      cp /boot/grub/menu.lst{,_backup_by_grub2_prerm}
11      echo "Running update-grub Legacy to remove our core.img in it" >&2
12      /usr/lib/grub-legacy/update-grub 2>&1 | sed -e "s/^/    /g" >&2
13    fi
14  ;;
15  failed-upgrade|upgrade)
16  ;;
17  *)
18    echo "prerm called with unknown argument \`$1'" >&2
19    exit 1
20  ;;
21esac
22
23# dh_installdeb will replace this with shell code automatically
24# generated by other debhelper scripts.
25
26#DEBHELPER#
27
28exit 0
Note: See TracBrowser for help on using the repository browser.