summaryrefslogtreecommitdiff
path: root/debian/kanotix-plasma-script.postrm
blob: 15dedd20a060dff559d13dfbf52dfaa7565d176b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/bash
set -e

remove_divert() {
	diverter=$(dpkg-divert --listpackage $1)
	if [ "$diverter" = "kanotix-plasma-script" ]; then
		dpkg-divert --package kanotix-plasma-script --rename --remove $1
	fi
}

if [ "$1" = remove ] || [ "$1" = deconfigure ]; then
	remove_divert /usr/share/kde4/apps/plasma-desktop/init/00-defaultLayout.js
fi