diff options
| author | pgf <pgf@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2005-08-01 16:04:40 +0000 |
|---|---|---|
| committer | pgf <pgf@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2005-08-01 16:04:40 +0000 |
| commit | c0b300d5e2c6bfb5484d7beb0400a280d4d77ea4 (patch) | |
| tree | 0080e21973368e7f3b2c510d29c411b50fee0488 /miscutils | |
| parent | 2d2674a554021e2e03ce29c62c38e4a9a62ede93 (diff) | |
| download | busybox-w32-c0b300d5e2c6bfb5484d7beb0400a280d4d77ea4.tar.gz busybox-w32-c0b300d5e2c6bfb5484d7beb0400a280d4d77ea4.tar.bz2 busybox-w32-c0b300d5e2c6bfb5484d7beb0400a280d4d77ea4.zip | |
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.
git-svn-id: svn://busybox.net/trunk/busybox@11006 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'miscutils')
| -rw-r--r-- | miscutils/Config.in | 7 | ||||
| -rw-r--r-- | miscutils/Makefile.in | 1 | ||||
| -rw-r--r-- | miscutils/bbconfig.c | 8 |
3 files changed, 16 insertions, 0 deletions
diff --git a/miscutils/Config.in b/miscutils/Config.in index 57afd32ed..69a330058 100644 --- a/miscutils/Config.in +++ b/miscutils/Config.in | |||
| @@ -34,6 +34,13 @@ config CONFIG_FEATURE_CROND_CALL_SENDMAIL | |||
| 34 | help | 34 | help |
| 35 | Support calling /usr/sbin/sendmail for send cmd outputs. | 35 | Support calling /usr/sbin/sendmail for send cmd outputs. |
| 36 | 36 | ||
| 37 | config CONFIG_BBCONFIG | ||
| 38 | bool "bbconfig" | ||
| 39 | default n | ||
| 40 | help | ||
| 41 | The bbconfig applet will print the config file with which | ||
| 42 | busybox was built. | ||
| 43 | |||
| 37 | config CONFIG_CRONTAB | 44 | config CONFIG_CRONTAB |
| 38 | bool "crontab" | 45 | bool "crontab" |
| 39 | default n | 46 | default n |
diff --git a/miscutils/Makefile.in b/miscutils/Makefile.in index 5cff2fe69..d4c5ff76b 100644 --- a/miscutils/Makefile.in +++ b/miscutils/Makefile.in | |||
| @@ -27,6 +27,7 @@ MISCUTILS-y:= | |||
| 27 | MISCUTILS-$(CONFIG_ADJTIMEX) += adjtimex.o | 27 | MISCUTILS-$(CONFIG_ADJTIMEX) += adjtimex.o |
| 28 | MISCUTILS-$(CONFIG_CROND) += crond.o | 28 | MISCUTILS-$(CONFIG_CROND) += crond.o |
| 29 | MISCUTILS-$(CONFIG_CRONTAB) += crontab.o | 29 | MISCUTILS-$(CONFIG_CRONTAB) += crontab.o |
| 30 | MISCUTILS-$(CONFIG_BBCONFIG) += bbconfig.o | ||
| 30 | MISCUTILS-$(CONFIG_DC) += dc.o | 31 | MISCUTILS-$(CONFIG_DC) += dc.o |
| 31 | MISCUTILS-$(CONFIG_DEVFSD) += devfsd.o | 32 | MISCUTILS-$(CONFIG_DEVFSD) += devfsd.o |
| 32 | MISCUTILS-$(CONFIG_EJECT) += eject.o | 33 | MISCUTILS-$(CONFIG_EJECT) += eject.o |
diff --git a/miscutils/bbconfig.c b/miscutils/bbconfig.c new file mode 100644 index 000000000..f2c692c9b --- /dev/null +++ b/miscutils/bbconfig.c | |||
| @@ -0,0 +1,8 @@ | |||
| 1 | #include "busybox.h" | ||
| 2 | #include "bbconfigopts.h" | ||
| 3 | |||
| 4 | int bbconfig_main(int argc, char **argv) | ||
| 5 | { | ||
| 6 | printf(bbconfig_config); | ||
| 7 | return 0; | ||
| 8 | } | ||
