#! /bin/sh set -e PACKAGE_NAME="lliurex-ltsp-client" case "$1" in configure) echo "Nohing to do" ;; upgrade) if [ -d "/usr/share/ldm/rc.d.diversions" ]; then echo "[LliureX-LTSP-Client] Nohing to do in upgrade"; else # REMOVING FUCKING OLD DIVERSIONS echo "[LliureX-LTSP-Client] Migrating from version 0.2.7 to 0.2.8... changing diversions from location..." OLD_DIVERTED_FILE="/usr/share/ldm/rc.d/X01-localapps.diverted" if [ -r "$OLD_DIVERTED_FILE" ] ; then rm -f "$OLD_DIVERTED_FILE" fi OLD_LLIUREX_FILE="/usr/share/ldm/rc.d/X01-localapps.lliurex" if [ -r "$OLD_LLIUREX_FILE" ] ; then rm -f "$OLD_LLIUREX_FILE" fi ORIGINAL_FILE="/usr/share/ldm/rc.d/X01-localapps" dpkg-divert --package $PACKAGE_NAME --rename --quiet --remove $ORIGINAL_FILE OLD_DIVERTED_FILE="/usr/share/ldm/rc.d/X99-zlocalapps-cleanup.diverted" if [ -r "$OLD_DIVERTED_FILE" ] ; then rm -f "$OLD_DIVERTED_FILE" fi OLD_LLIUREX_FILE="/usr/share/ldm/rc.d/X99-zlocalapps-cleanup.lliurex" if [ -r "$OLD_LLIUREX_FILE" ] ; then rm -f "$OLD_LLIUREX_FILE" fi ORIGINAL_FILE="/usr/share/ldm/rc.d/X99-zlocalapps-cleanup" dpkg-divert --package $PACKAGE_NAME --rename --quiet --remove $ORIGINAL_FILE fi mkdir -p /var/lib/tftpboot/ltsp/i386/ ;; esac # dh_installdeb will replace this with shell code automatically # generated by other debhelper scripts. #DEBHELPER# exit 0