source: casper-and-ubiquity-hooks/trunk/fuentes/debian/casper-live-artwork.postinst @ 3236

Last change on this file since 3236 was 3236, checked in by mabarracus, 4 years ago

new package casper-live-artwork

File size: 1.9 KB
Line 
1#!/bin/sh
2#!/bin/sh
3# postinst script
4#
5# see: dh_installdeb(1)
6
7set -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
24case "$1" in
25    configure)
26        DIR="/etc/gtk-3.0"
27        FICH="${DIR}/settings.ini"
28        REPLACED="${DIR}/settings.orig-ini"
29        REPLACEMENT="${DIR}/settings.casper"
30       
31        if [ -f "${FICH}" ]; then 
32            dpkg-divert --package casper-customize-autologin --divert "${REPLACED}" --rename "${FICH}"
33            [ \! -e "${FICH}" -o -L "${FICH}" ] && ln -f "${REPLACEMENT}" "${FICH}"
34        fi
35       
36        update-alternatives --install /usr/share/backgrounds/link-lliurex-default-background.png desktop-background /usr/share/backgrounds/lliurex-default-background.png 99
37        update-alternatives --install /usr/share/backgrounds/lliurex/link-lliurex-background.xml desktop-background.xml /usr/share/backgrounds/lliurex/lliurex-background.xml 99
38       
39#        if [ -x /usr/sbin/update-initramfs ]; then
40#            update-initramfs -u
41#        fi
42       
43        dconf compile /etc/dconf/db/lliurex /etc/dconf/db/lliurex.d
44       
45    ;;
46    abort-upgrade|abort-remove|abort-deconfigure)
47    ;;
48
49    *)
50        echo "postinst called with unknown argument \`$1'" >&2
51        exit 1
52    ;;
53esac
54
55# dh_installdeb will replace this with shell code automatically
56# generated by other debhelper scripts.
57
58#DEBHELPER#
59
60exit 0
Note: See TracBrowser for help on using the repository browser.