summaryrefslogtreecommitdiff
path: root/preinst
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2011-03-08 01:45:28 -0800
committerJay Freeman (saurik) <saurik@saurik.com>2011-03-08 02:18:58 -0800
commit35ee854810ce90c8418e3072cfb28e246fdba013 (patch)
treeb65b354ab09d55b66fde4a3eb36b8b6c8f21e1c1 /preinst
parent5e84512182af57d942a678c7ff5cf51c39d3ad72 (diff)
Take Telesphoreo's preinst.
Diffstat (limited to 'preinst')
-rwxr-xr-xpreinst20
1 files changed, 20 insertions, 0 deletions
diff --git a/preinst b/preinst
new file mode 100755
index 0000000..86a4a25
--- /dev/null
+++ b/preinst
@@ -0,0 +1,20 @@
+#!/bin/bash
+
+declare -a cydia
+cydia=($CYDIA)
+
+if [[ $1 == upgrade ]]; then
+ if [[ ${CYDIA+@} ]]; then
+ if [[ ${cydia[1]} -lt 1 ]]; then
+ echo 'PLEASE RESTART CYDIA!'
+ echo 'PLEASE RESTART CYDIA!'
+ echo 'PLEASE RESTART CYDIA!'
+ else
+ eval "echo 'finish:reopen' >&${cydia[0]}"
+ fi
+ fi
+
+ echo >/tmp/.cydia.fw
+fi
+
+exit 0