diff options
-rw-r--r-- | applets.c | 7 | ||||
-rw-r--r-- | applets/applets.c | 7 | ||||
-rw-r--r-- | applets/busybox.c | 2 | ||||
-rw-r--r-- | busybox.c | 2 |
4 files changed, 16 insertions, 2 deletions
@@ -49,6 +49,13 @@ extern void show_usage(void) | |||
49 | const char *format_string; | 49 | const char *format_string; |
50 | const char *usage_string = usage_messages; | 50 | const char *usage_string = usage_messages; |
51 | int i; | 51 | int i; |
52 | /* From busybox.c */ | ||
53 | extern int been_there_done_that; | ||
54 | |||
55 | if (strcmp(applet_using->name, "busybox")==0) { | ||
56 | been_there_done_that=1; | ||
57 | busybox_main(0, NULL); | ||
58 | } | ||
52 | 59 | ||
53 | for (i = applet_using - applets; i > 0; ) { | 60 | for (i = applet_using - applets; i > 0; ) { |
54 | if (!*usage_string++) { | 61 | if (!*usage_string++) { |
diff --git a/applets/applets.c b/applets/applets.c index c2ccb88fa..10b44a5fc 100644 --- a/applets/applets.c +++ b/applets/applets.c | |||
@@ -49,6 +49,13 @@ extern void show_usage(void) | |||
49 | const char *format_string; | 49 | const char *format_string; |
50 | const char *usage_string = usage_messages; | 50 | const char *usage_string = usage_messages; |
51 | int i; | 51 | int i; |
52 | /* From busybox.c */ | ||
53 | extern int been_there_done_that; | ||
54 | |||
55 | if (strcmp(applet_using->name, "busybox")==0) { | ||
56 | been_there_done_that=1; | ||
57 | busybox_main(0, NULL); | ||
58 | } | ||
52 | 59 | ||
53 | for (i = applet_using - applets; i > 0; ) { | 60 | for (i = applet_using - applets; i > 0; ) { |
54 | if (!*usage_string++) { | 61 | if (!*usage_string++) { |
diff --git a/applets/busybox.c b/applets/busybox.c index 03a2525a3..5085556d6 100644 --- a/applets/busybox.c +++ b/applets/busybox.c | |||
@@ -10,7 +10,7 @@ | |||
10 | #define BB_DECLARE_EXTERN | 10 | #define BB_DECLARE_EXTERN |
11 | #include "messages.c" | 11 | #include "messages.c" |
12 | 12 | ||
13 | static int been_there_done_that = 0; | 13 | int been_there_done_that = 0; /* Also used in applets.c */ |
14 | const char *applet_name; | 14 | const char *applet_name; |
15 | 15 | ||
16 | #ifdef BB_FEATURE_INSTALLER | 16 | #ifdef BB_FEATURE_INSTALLER |
@@ -10,7 +10,7 @@ | |||
10 | #define BB_DECLARE_EXTERN | 10 | #define BB_DECLARE_EXTERN |
11 | #include "messages.c" | 11 | #include "messages.c" |
12 | 12 | ||
13 | static int been_there_done_that = 0; | 13 | int been_there_done_that = 0; /* Also used in applets.c */ |
14 | const char *applet_name; | 14 | const char *applet_name; |
15 | 15 | ||
16 | #ifdef BB_FEATURE_INSTALLER | 16 | #ifdef BB_FEATURE_INSTALLER |