summaryrefslogtreecommitdiff
path: root/distro/ubuntu/prerm
diff options
context:
space:
mode:
Diffstat (limited to 'distro/ubuntu/prerm')
-rwxr-xr-xdistro/ubuntu/prerm16
1 files changed, 16 insertions, 0 deletions
diff --git a/distro/ubuntu/prerm b/distro/ubuntu/prerm
new file mode 100755
index 00000000..fffeaefb
--- /dev/null
+++ b/distro/ubuntu/prerm
@@ -0,0 +1,16 @@
+#!/bin/bash
+
+set -e
+
+pkgname=mate-panel
+
+MATECONF_CONFIG_SOURCE=`usr/bin/mateconftool-2 --get-default-source`
+
+/usr/bin/mateconftool-2 --config-source="${MATECONF_CONFIG_SOURCE}" --direct --unload \
+ /etc/mateconf/schemas/panel-default-setup.entries > /dev/null
+
+if [ -f /usr/sbin/mateconfpkg ]; then
+ /usr/sbin/mateconfpkg --uninstall ${pkgname}
+fi
+
+exit 0