#!/bin/sh FILES_TO_DIVERT="/usr/share/applications/kde4/kpackagekit.desktop /usr/share/applications/kde4/kalzium.desktop" for f in $FILES_TO_DIVERT ; do rm -f $f dpkg-divert --package llxcfg-desktops-keeper --rename --quiet --remove $f done