#!/bin/sh set -e # COMMON VARIABLES PACKAGE_NAME="lliurex-gva" case $1 in install|configure|upgrade) ORIGINAL_FILE="/etc/pam.d/lightdm" NEW_FILE="/etc/pam.d/lightdm.diverted" if [ ! -r "$NEW_FILE" ] ; then dpkg-divert --package $PACKAGE_NAME --rename --quiet --add --divert $NEW_FILE $ORIGINAL_FILE fi ;; *) echo "[DEBUG] Unknow action ..." ;; esac #DEBHELPER# exit 0