summaryrefslogtreecommitdiff
path: root/autoscripts/prerm-gconf
diff options
context:
space:
mode:
Diffstat (limited to 'autoscripts/prerm-gconf')
-rw-r--r--autoscripts/prerm-gconf11
1 files changed, 11 insertions, 0 deletions
diff --git a/autoscripts/prerm-gconf b/autoscripts/prerm-gconf
new file mode 100644
index 0000000..aaa803e
--- /dev/null
+++ b/autoscripts/prerm-gconf
@@ -0,0 +1,11 @@
+if [ "$1" = remove ] || [ "$1" = upgrade ]; then
+ SCHEMA_LOCATION=/etc/gconf/schemas
+ SCHEMA_FILES="#SCHEMAS#"
+ for SCHEMA in $SCHEMA_FILES; do
+ if [ -e $SCHEMA_LOCATION/$SCHEMA ]; then
+ HOME=/root GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` \
+ gconftool-2 \
+ --makefile-uninstall-rule $SCHEMA_LOCATION/$SCHEMA > /dev/null
+ fi
+ done
+fi