aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--applets/busybox.c3
-rw-r--r--busybox.c3
-rw-r--r--busybox.def.h1
-rw-r--r--internal.h1
4 files changed, 8 insertions, 0 deletions
diff --git a/applets/busybox.c b/applets/busybox.c
index 67a606cc4..c050acc9c 100644
--- a/applets/busybox.c
+++ b/applets/busybox.c
@@ -45,6 +45,9 @@ static const struct Applet applets[] = {
#ifdef BB_DMESG //bin
{"dmesg", dmesg_main},
#endif
+#ifdef BB_DU //bin
+ {"du", du_main},
+#endif
#ifdef BB_DUTMP //usr/sbin
{"dutmp", dutmp_main},
#endif
diff --git a/busybox.c b/busybox.c
index 67a606cc4..c050acc9c 100644
--- a/busybox.c
+++ b/busybox.c
@@ -45,6 +45,9 @@ static const struct Applet applets[] = {
#ifdef BB_DMESG //bin
{"dmesg", dmesg_main},
#endif
+#ifdef BB_DU //bin
+ {"du", du_main},
+#endif
#ifdef BB_DUTMP //usr/sbin
{"dutmp", dutmp_main},
#endif
diff --git a/busybox.def.h b/busybox.def.h
index 786f98119..efab4941c 100644
--- a/busybox.def.h
+++ b/busybox.def.h
@@ -14,6 +14,7 @@
#define BB_DF
#define BB_DMESG
//#define BB_DUTMP
+#define BB_DU
//#define BB_FDFLUSH
#define BB_FIND
#define BB_FREE
diff --git a/internal.h b/internal.h
index 42c6b93ab..830d30eb4 100644
--- a/internal.h
+++ b/internal.h
@@ -63,6 +63,7 @@ extern int date_main(int argc, char** argv);
extern int dd_main(int argc, char** argv);
extern int df_main(int argc, char** argv);
extern int dmesg_main(int argc, char** argv);
+extern int du_main(int argc, char** argv);
extern int dutmp_main(int argc, char** argv);
extern int false_main(int argc, char** argv);
extern int fdisk_main(int argc, char** argv);