Last change
on this file since 1942 was
1942,
checked in by mabarracus, 5 years ago
|
Fixes postinst bug
|
-
Property svn:executable set to
*
|
File size:
968 bytes
|
Line | |
---|
1 | #!/bin/sh -e |
---|
2 | # This script can be called in the following ways: |
---|
3 | # |
---|
4 | # After the package was installed: |
---|
5 | # <postinst> configure <old-version> |
---|
6 | # |
---|
7 | # |
---|
8 | # If prerm fails during upgrade or fails on failed upgrade: |
---|
9 | # <old-postinst> abort-upgrade <new-version> |
---|
10 | # |
---|
11 | # If prerm fails during deconfiguration of a package: |
---|
12 | # <postinst> abort-deconfigure in-favour <new-package> <version> |
---|
13 | # removing <old-package> <version> |
---|
14 | # |
---|
15 | # If prerm fails during replacement due to conflict: |
---|
16 | # <postinst> abort-remove in-favour <new-package> <version> |
---|
17 | |
---|
18 | |
---|
19 | case "$1" in |
---|
20 | configure) |
---|
21 | |
---|
22 | update-alternatives \ |
---|
23 | --install /usr/share/plymouth/themes/text.plymouth text.plymouth \ |
---|
24 | /lib/plymouth/themes/lliurex-text/lliurex-text.plymouth 155 |
---|
25 | |
---|
26 | if which update-initramfs >/dev/null 2>&1 |
---|
27 | then |
---|
28 | update-initramfs -u |
---|
29 | fi |
---|
30 | ;; |
---|
31 | |
---|
32 | abort-upgrade|abort-deconfigure|abort-remove) |
---|
33 | ;; |
---|
34 | |
---|
35 | *) |
---|
36 | echo "$0 called with unknown argument \`$1'" 1>&2 |
---|
37 | exit 1 |
---|
38 | ;; |
---|
39 | esac |
---|
40 | |
---|
41 | |
---|
42 | exit 0 |
---|
Note: See
TracBrowser
for help on using the repository browser.