summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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