Line | |
---|
1 | #!/bin/sh |
---|
2 | set -e |
---|
3 | |
---|
4 | # Template for diversions |
---|
5 | ORIG_FILE="/etc/grub.d/10_linux" |
---|
6 | OUR_FILE="/etc/lliurex-grub/10_linux_lliurex" |
---|
7 | OUR_PACKAGE="lliurex-grub-custom" |
---|
8 | |
---|
9 | case $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 | ;; |
---|
28 | esac |
---|
29 | |
---|
30 | # Other Stuff # |
---|
31 | |
---|
32 | |
---|
33 | #DEBHELPER# |
---|
Note: See
TracBrowser
for help on using the repository browser.