summaryrefslogtreecommitdiff
path: root/data/mobileterminal/_metadata/postinst
diff options
context:
space:
mode:
Diffstat (limited to 'data/mobileterminal/_metadata/postinst')
-rw-r--r--data/mobileterminal/_metadata/postinst13
1 files changed, 13 insertions, 0 deletions
diff --git a/data/mobileterminal/_metadata/postinst b/data/mobileterminal/_metadata/postinst
new file mode 100644
index 000000000..c0b1fb066
--- /dev/null
+++ b/data/mobileterminal/_metadata/postinst
@@ -0,0 +1,13 @@
+#!/bin/bash
+shopt -s extglob
+
+if [[ $# -gt 1 && $1 == configure ]]; then
+ ver=${2%%?(u)-*([0-9])}
+ rev=${2##*-}
+
+ if [[ ${ver} -lt 286 || ${ver} -eq 286 && ${rev} -lt 6 ]]; then
+ rm -f ~mobile/Library/Preferences/com.googlecode.mobileterminal.plist
+ fi
+fi
+
+exit 0