summaryrefslogtreecommitdiff
path: root/debian/kanotix-plasma-script.postrm
diff options
context:
space:
mode:
authorAndreas Loibl <andreas@andreas-loibl.de>2012-05-18 05:56:33 +0200
committerAndreas Loibl <andreas@andreas-loibl.de>2012-05-18 05:56:33 +0200
commitd18ec281cdcf2851180de54620206f394fda255e (patch)
tree323a5773652937eef705869e5bf29136cce72fa1 /debian/kanotix-plasma-script.postrm
parente42c2f330d1a997433323977734a26d3ab99f755 (diff)
downloadetcskel-kanotix-d18ec281cdcf2851180de54620206f394fda255e.zip
etcskel-kanotix-d18ec281cdcf2851180de54620206f394fda255e.tar.gz
import changes from debian package version 2.0.0
Diffstat (limited to 'debian/kanotix-plasma-script.postrm')
-rw-r--r--debian/kanotix-plasma-script.postrm13
1 files changed, 13 insertions, 0 deletions
diff --git a/debian/kanotix-plasma-script.postrm b/debian/kanotix-plasma-script.postrm
new file mode 100644
index 0000000..15dedd2
--- /dev/null
+++ b/debian/kanotix-plasma-script.postrm
@@ -0,0 +1,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