summaryrefslogtreecommitdiff
path: root/data/cydia
diff options
context:
space:
mode:
Diffstat (limited to 'data/cydia')
-rw-r--r--data/cydia/make.sh3
-rw-r--r--data/cydia/symlink.c7
2 files changed, 10 insertions, 0 deletions
diff --git a/data/cydia/make.sh b/data/cydia/make.sh
index bc84601d2..36f51ad89 100644
--- a/data/cydia/make.sh
+++ b/data/cydia/make.sh
@@ -15,3 +15,6 @@ pkg: cp -a CydiaSettings.bundle /System/Library/PreferenceBundles
pkg: mkdir -p /usr/libexec/cydia
pkg: cp -a %/install.sh /usr/libexec/cydia
+
+pkg: arm-apple-darwin-gcc -o symlink %/symlink.c
+pkg: cp -a symlink /usr/libexec/cydia
diff --git a/data/cydia/symlink.c b/data/cydia/symlink.c
new file mode 100644
index 000000000..7ba730d8d
--- /dev/null
+++ b/data/cydia/symlink.c
@@ -0,0 +1,7 @@
+#include <unistd.h>
+
+int main(int argc, const char *argv[]) {
+ unlink(argv[2]);
+ symlink(argv[1], argv[2]);
+ return 0;
+}