summaryrefslogtreecommitdiff
path: root/miscutils
diff options
context:
space:
mode:
authorPaul Fox2005-08-01 16:04:40 +0000
committerPaul Fox2005-08-01 16:04:40 +0000
commit79c142d93847c168b825858f4e372e10c7e32906 (patch)
tree0080e21973368e7f3b2c510d29c411b50fee0488 /miscutils
parenta39bba33c8649a6be42d5a511a4ac909a8998f90 (diff)
downloadbusybox-79c142d93847c168b825858f4e372e10c7e32906.zip
busybox-79c142d93847c168b825858f4e372e10c7e32906.tar.gz
new config display applet, from bug 46. i've changed the name
of the applet from "config" to "bbconfig", and renamed the source filenames and symbols to match appropriately.
Diffstat (limited to 'miscutils')
-rw-r--r--miscutils/Config.in7
-rw-r--r--miscutils/Makefile.in1
-rw-r--r--miscutils/bbconfig.c8
3 files changed, 16 insertions, 0 deletions
diff --git a/miscutils/Config.in b/miscutils/Config.in
index 57afd32..69a3300 100644
--- a/miscutils/Config.in
+++ b/miscutils/Config.in
@@ -34,6 +34,13 @@ config CONFIG_FEATURE_CROND_CALL_SENDMAIL
help
Support calling /usr/sbin/sendmail for send cmd outputs.
+config CONFIG_BBCONFIG
+ bool "bbconfig"
+ default n
+ help
+ The bbconfig applet will print the config file with which
+ busybox was built.
+
config CONFIG_CRONTAB
bool "crontab"
default n
diff --git a/miscutils/Makefile.in b/miscutils/Makefile.in
index 5cff2fe..d4c5ff7 100644
--- a/miscutils/Makefile.in
+++ b/miscutils/Makefile.in
@@ -27,6 +27,7 @@ MISCUTILS-y:=
MISCUTILS-$(CONFIG_ADJTIMEX) += adjtimex.o
MISCUTILS-$(CONFIG_CROND) += crond.o
MISCUTILS-$(CONFIG_CRONTAB) += crontab.o
+MISCUTILS-$(CONFIG_BBCONFIG) += bbconfig.o
MISCUTILS-$(CONFIG_DC) += dc.o
MISCUTILS-$(CONFIG_DEVFSD) += devfsd.o
MISCUTILS-$(CONFIG_EJECT) += eject.o
diff --git a/miscutils/bbconfig.c b/miscutils/bbconfig.c
new file mode 100644
index 0000000..f2c692c
--- /dev/null
+++ b/miscutils/bbconfig.c
@@ -0,0 +1,8 @@
+#include "busybox.h"
+#include "bbconfigopts.h"
+
+int bbconfig_main(int argc, char **argv)
+{
+ printf(bbconfig_config);
+ return 0;
+}