summaryrefslogtreecommitdiff
path: root/MobileCydia.mm
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2011-03-21 03:37:11 -0700
committerJay Freeman (saurik) <saurik@saurik.com>2011-03-21 03:37:11 -0700
commit1daa3bc0b0f45048ad98010cac2f1e90a813def5 (patch)
tree5272bfc44a0643c8b923d0d864e7c09c60b42fcd /MobileCydia.mm
parent2fcb1d49a0be54a0d43a4984e6e50e0a2d8d77f9 (diff)
Rely on /var/lib/cydia/firmware.ver over /tmp/.cydia.fw.
Diffstat (limited to 'MobileCydia.mm')
-rw-r--r--MobileCydia.mm6
1 files changed, 1 insertions, 5 deletions
diff --git a/MobileCydia.mm b/MobileCydia.mm
index dd7b14a..f9e5bde 100644
--- a/MobileCydia.mm
+++ b/MobileCydia.mm
@@ -10362,11 +10362,7 @@ int main(int argc, char *argv[]) {
int version([[NSString stringWithContentsOfFile:@"/var/lib/cydia/firmware.ver"] intValue]);
- if (access("/tmp/.cydia.fw", F_OK) == 0) {
- unlink("/tmp/.cydia.fw");
- goto firmware;
- } else if (access("/User", F_OK) != 0 || version < 5) {
- firmware:
+ if (access("/User", F_OK) != 0 || version != 5) {
_trace();
system("/usr/libexec/cydia/firmware.sh");
_trace();