1 | #!/bin/sh |
---|
2 | #!/bin/sh |
---|
3 | # postinst script |
---|
4 | # |
---|
5 | # see: dh_installdeb(1) |
---|
6 | |
---|
7 | set -e |
---|
8 | |
---|
9 | . /usr/share/debconf/confmodule |
---|
10 | |
---|
11 | # summary of how this script can be called: |
---|
12 | # * <postinst> `configure' <most-recently-configured-version> |
---|
13 | # * <old-postinst> `abort-upgrade' <new version> |
---|
14 | # * <conflictor's-postinst> `abort-remove' `in-favour' <package> |
---|
15 | # <new-version> |
---|
16 | # * <postinst> `abort-remove' |
---|
17 | # * <deconfigured's-postinst> `abort-deconfigure' `in-favour' |
---|
18 | # <failed-install-package> <version> `removing' |
---|
19 | # <conflicting-package> <version> |
---|
20 | # for details, see http://www.debian.org/doc/debian-policy/ or |
---|
21 | # the debian-policy package |
---|
22 | |
---|
23 | |
---|
24 | case "$1" in |
---|
25 | configure) |
---|
26 | PACKAGE="casper-live-artwork" |
---|
27 | DIR="/etc/gtk-3.0" |
---|
28 | FICH="${DIR}/settings.ini" |
---|
29 | REPLACED="${DIR}/settings.orig-ini" |
---|
30 | REPLACEMENT="${DIR}/settings.casper" |
---|
31 | |
---|
32 | if [ -f "${FICH}" ]; then |
---|
33 | dpkg-divert --package "${PACKAGE}" --divert "${REPLACED}" --rename "${FICH}" |
---|
34 | [ \! -e "${FICH}" -o -L "${FICH}" ] && ln -f "${REPLACEMENT}" "${FICH}" |
---|
35 | fi |
---|
36 | |
---|
37 | update-alternatives --install /usr/share/backgrounds/link-lliurex-default-background.png desktop-background /usr/share/backgrounds/lliurex-default-background.png 99 |
---|
38 | update-alternatives --install /usr/share/backgrounds/lliurex/link-lliurex-background.xml desktop-background.xml /usr/share/backgrounds/lliurex/lliurex-background.xml 99 |
---|
39 | |
---|
40 | # if [ -x /usr/sbin/update-initramfs ]; then |
---|
41 | # update-initramfs -u |
---|
42 | # fi |
---|
43 | |
---|
44 | dconf compile /etc/dconf/db/lliurex /etc/dconf/db/lliurex.d |
---|
45 | |
---|
46 | ;; |
---|
47 | abort-upgrade|abort-remove|abort-deconfigure) |
---|
48 | ;; |
---|
49 | |
---|
50 | *) |
---|
51 | echo "postinst called with unknown argument \`$1'" >&2 |
---|
52 | exit 1 |
---|
53 | ;; |
---|
54 | esac |
---|
55 | |
---|
56 | # dh_installdeb will replace this with shell code automatically |
---|
57 | # generated by other debhelper scripts. |
---|
58 | |
---|
59 | #DEBHELPER# |
---|
60 | |
---|
61 | exit 0 |
---|