#!/bin/sh #!/bin/sh # postinst script # # see: dh_installdeb(1) set -e . /usr/share/debconf/confmodule # summary of how this script can be called: # * `configure' # * `abort-upgrade' # * `abort-remove' `in-favour' # # * `abort-remove' # * `abort-deconfigure' `in-favour' # `removing' # # for details, see http://www.debian.org/doc/debian-policy/ or # the debian-policy package case "$1" in configure) PACKAGE="casper-live-artwork" DIR="/etc/gtk-3.0" FICH="${DIR}/settings.ini" REPLACED="${DIR}/settings.orig-ini" REPLACEMENT="${DIR}/settings.casper" if [ -f "${FICH}" ]; then dpkg-divert --package "${PACKAGE}" --divert "${REPLACED}" --rename "${FICH}" [ \! -e "${FICH}" -o -L "${FICH}" ] && ln -f "${REPLACEMENT}" "${FICH}" fi update-alternatives --install /usr/share/backgrounds/link-lliurex-default-background.png desktop-background /usr/share/backgrounds/lliurex-default-background.png 99 update-alternatives --install /usr/share/backgrounds/lliurex/link-lliurex-background.xml desktop-background.xml /usr/share/backgrounds/lliurex/lliurex-background.xml 99 # if [ -x /usr/sbin/update-initramfs ]; then # update-initramfs -u # fi dconf compile /etc/dconf/db/lliurex /etc/dconf/db/lliurex.d ;; abort-upgrade|abort-remove|abort-deconfigure) ;; *) echo "postinst called with unknown argument \`$1'" >&2 exit 1 ;; esac # dh_installdeb will replace this with shell code automatically # generated by other debhelper scripts. #DEBHELPER# exit 0