summaryrefslogtreecommitdiff
path: root/Cydia.mm
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2009-06-22 13:52:05 +0000
committerJay Freeman (saurik) <saurik@saurik.com>2010-09-30 07:13:57 +0000
commit3b0f10b0d6210f1c9dcfaea741138b937acf0890 (patch)
tree44224ff93bcf1fd244fec84095a9a801708c24a7 /Cydia.mm
parent440098bdb4467f8d3d9849c92dc372ccbdd650e1 (diff)
Further complicate previous bug.:
Diffstat (limited to 'Cydia.mm')
-rw-r--r--Cydia.mm5
1 files changed, 4 insertions, 1 deletions
diff --git a/Cydia.mm b/Cydia.mm
index 40c83bd..4264ef4 100644
--- a/Cydia.mm
+++ b/Cydia.mm
@@ -8606,8 +8606,11 @@ int main(int argc, char *argv[]) { _pooled
/*if (substrate && access("/Library/MobileSubstrate/MobileSubstrate.dylib", F_OK) == 0)
dlopen("/Library/MobileSubstrate/MobileSubstrate.dylib", RTLD_LAZY | RTLD_GLOBAL);*/
- if (access("/User", F_OK) != 0 || access("/tmp/.cydia.fw", F_OK) == 0) {
+ if (access("/tmp/.cydia.fw", F_OK) == 0) {
unlink("/tmp/.cydia.fw");
+ goto firmware;
+ } else if (access("/User", F_OK) != 0) {
+ firmware:
_trace();
system("/usr/libexec/cydia/firmware.sh");
_trace();