diff options
Diffstat (limited to 'applets')
-rw-r--r-- | applets/busybox.c | 29 |
1 files changed, 27 insertions, 2 deletions
diff --git a/applets/busybox.c b/applets/busybox.c index a00f90be0..67485de8d 100644 --- a/applets/busybox.c +++ b/applets/busybox.c | |||
@@ -3,8 +3,18 @@ | |||
3 | #include <string.h> | 3 | #include <string.h> |
4 | #include <errno.h> | 4 | #include <errno.h> |
5 | 5 | ||
6 | #ifndef BB_INIT | ||
7 | #undef BB_FEATURE_LINUXRC | ||
8 | #endif | ||
9 | |||
6 | static int been_there_done_that = 0; | 10 | static int been_there_done_that = 0; |
7 | 11 | ||
12 | /* It has been alledged that doing such things can | ||
13 | * help reduce binary size when staticly linking, | ||
14 | * of course with glibc, this is unlikely as long | ||
15 | * as we use things like printf -- perhaps a printf | ||
16 | * replacement may be in order | ||
17 | */ | ||
8 | #if 0 | 18 | #if 0 |
9 | void exit (int status) __attribute__ ((noreturn)); | 19 | void exit (int status) __attribute__ ((noreturn)); |
10 | void exit (int status) { _exit(status); }; | 20 | void exit (int status) { _exit(status); }; |
@@ -91,6 +101,9 @@ static const struct Applet applets[] = { | |||
91 | #ifdef BB_HEAD //bin | 101 | #ifdef BB_HEAD //bin |
92 | {"head", head_main}, | 102 | {"head", head_main}, |
93 | #endif | 103 | #endif |
104 | #ifdef BB_HOSTID //usr/bin | ||
105 | {"hostid", hostid_main}, | ||
106 | #endif | ||
94 | #ifdef BB_HOSTNAME //bin | 107 | #ifdef BB_HOSTNAME //bin |
95 | {"hostname", hostname_main}, | 108 | {"hostname", hostname_main}, |
96 | #endif | 109 | #endif |
@@ -209,6 +222,9 @@ static const struct Applet applets[] = { | |||
209 | #ifdef BB_LOGGER //usr/bin | 222 | #ifdef BB_LOGGER //usr/bin |
210 | {"logger", logger_main}, | 223 | {"logger", logger_main}, |
211 | #endif | 224 | #endif |
225 | #ifdef BB_LOGNAME //usr/bin | ||
226 | {"logname", logname_main}, | ||
227 | #endif | ||
212 | #ifdef BB_SWAPONOFF //sbin | 228 | #ifdef BB_SWAPONOFF //sbin |
213 | {"swapon", swap_on_off_main}, | 229 | {"swapon", swap_on_off_main}, |
214 | {"swapoff", swap_on_off_main}, | 230 | {"swapoff", swap_on_off_main}, |
@@ -229,8 +245,8 @@ static const struct Applet applets[] = { | |||
229 | {"true", true_main}, | 245 | {"true", true_main}, |
230 | {"false", false_main}, | 246 | {"false", false_main}, |
231 | #endif | 247 | #endif |
232 | #ifdef BB_WC //usr/bin | 248 | #ifdef BB_TTY //usr/bin |
233 | {"wc", wc_main}, | 249 | {"tty", tty_main}, |
234 | #endif | 250 | #endif |
235 | #ifdef BB_UNAME //bin | 251 | #ifdef BB_UNAME //bin |
236 | {"uname", uname_main}, | 252 | {"uname", uname_main}, |
@@ -244,6 +260,15 @@ static const struct Applet applets[] = { | |||
244 | #ifdef BB_UPDATE //sbin | 260 | #ifdef BB_UPDATE //sbin |
245 | {"update", update_main}, | 261 | {"update", update_main}, |
246 | #endif | 262 | #endif |
263 | #ifdef BB_WC //usr/bin | ||
264 | {"wc", wc_main}, | ||
265 | #endif | ||
266 | #ifdef BB_WHOAMI //usr/bin | ||
267 | {"whoami", whoami_main}, | ||
268 | #endif | ||
269 | #ifdef BB_YES //usr/bin | ||
270 | {"yes", yes_main}, | ||
271 | #endif | ||
247 | #ifdef BB_GUNZIP //bin | 272 | #ifdef BB_GUNZIP //bin |
248 | {"zcat", gunzip_main}, | 273 | {"zcat", gunzip_main}, |
249 | {"gunzip", gunzip_main}, | 274 | {"gunzip", gunzip_main}, |