summaryrefslogtreecommitdiff
path: root/sysui/desktop/solaris/postremove
diff options
context:
space:
mode:
authorRĂ¼diger Timm <rt@openoffice.org>2008-09-02 10:56:13 +0000
committerRĂ¼diger Timm <rt@openoffice.org>2008-09-02 10:56:13 +0000
commitbdcbd7489d685e3b42785eafec11e211a2749c05 (patch)
treefd8538019b882f52f6189f137d3a309a391f7ea8 /sysui/desktop/solaris/postremove
parent13cbb5d7f308995b876e551900a072bdccf36400 (diff)
INTEGRATION: CWS sysui30_DEV300 (1.1.2); FILE ADDED
2008/08/28 14:18:59 ihi 1.1.2.1: #i92874# 3-layer-office fix
Diffstat (limited to 'sysui/desktop/solaris/postremove')
-rw-r--r--sysui/desktop/solaris/postremove16
1 files changed, 16 insertions, 0 deletions
diff --git a/sysui/desktop/solaris/postremove b/sysui/desktop/solaris/postremove
new file mode 100644
index 000000000000..460c3f2fa196
--- /dev/null
+++ b/sysui/desktop/solaris/postremove
@@ -0,0 +1,16 @@
+#!/bin/sh
+
+# check whether /usr is writable
+tiptoe="${PKG_INSTALL_ROOT}/usr/_.$$"
+touch "$tiptoe" >/dev/null 2>&1
+if [ $? -ne 0 ]; then
+ exit 0
+fi
+rm -f "$tiptoe"
+
+# update shared mime database
+if [ -x /usr/bin/update-mime-database ]; then
+ update-mime-database ${PKG_INSTALL_ROOT}/usr/share/mime
+fi
+
+exit 0