source: lliurex-grub-custom/trunk/fuentes/debian/lliurex-grub-custom.prerm @ 483

Last change on this file since 483 was 483, checked in by mabarracus, 5 years ago

Add trusty code

File size: 726 bytes
Line 
1#!/bin/sh
2set -e
3
4# Template for diversions
5ORIG_FILE="/etc/grub.d/10_linux"
6OUR_FILE="/etc/lliurex-grub/10_linux_lliurex"
7OUR_PACKAGE="lliurex-grub-custom"
8
9case $1 in
10        remove|purge|abort-install|disappear)
11                if [ -f /etc/lliurex-grub/10_linux.real ] ; then
12                        rm -f ${ORIG_FILE}
13                        dpkg-divert --package  ${OUR_PACKAGE} --rename --quiet --remove ${ORIG_FILE}|| true
14                fi
15               
16
17                # To clean initramfs scripts
18                if type update-initramfs >/dev/null 2>&1; then
19                update-initramfs -u || true
20                fi
21
22
23               
24                ;;
25        *)
26                echo "Nothing to do"
27                ;; 
28esac
29
30# Other Stuff #
31
32
33#DEBHELPER#
Note: See TracBrowser for help on using the repository browser.