12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- #include "libbb.h"
- #include "bbconfigopts.h"
- #if ENABLE_FEATURE_COMPRESS_BBCONFIG
- # include "bb_archive.h"
- # include "bbconfigopts_bz2.h"
- #endif
- int bbconfig_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
- int bbconfig_main(int argc UNUSED_PARAM, char **argv UNUSED_PARAM)
- {
- #if ENABLE_FEATURE_COMPRESS_BBCONFIG
- const char *outbuf = unpack_bz2_data(bbconfig_config_bz2,
- sizeof(bbconfig_config_bz2), sizeof(bbconfig_config));
- if (outbuf) {
- full_write1_str(outbuf);
- }
- #else
- full_write1_str(bbconfig_config);
- #endif
- return 0;
- }
|