From 502e6aa7f9a247dc45fb79b4e5d0a02c00601b29 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Sun, 24 Feb 2013 14:10:09 -0400 Subject: Explicitly run every command as a busybox app Seems that CONFIG_FEATURE_SH_STANDALONE is not working. --- standalone/android/start.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'standalone/android/start.c') diff --git a/standalone/android/start.c b/standalone/android/start.c index 1f54ba259..95822f107 100644 --- a/standalone/android/start.c +++ b/standalone/android/start.c @@ -39,14 +39,13 @@ main () { } /* If this is the first run, set up busybox link. */ - if (stat("bin/busybox", &st_buf) != 0) { - mkdir("bin", 0777); - if (link("lib/lib.busybox.so", "bin/busybox") != 0) { + if (stat("busybox", &st_buf) != 0) { + if (link("lib/lib.busybox.so", "busybox") != 0) { perror("link busybox"); exit(1); } } - execl("bin/busybox", "bin/busybox", "sh", "lib/lib.runshell.so", NULL); + execl("./busybox", "./busybox", "sh", "lib/lib.runshell.so", NULL); perror("error running busybox sh"); } -- cgit v1.2.3