summaryrefslogtreecommitdiff
path: root/modutils/depmod.c
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer2008-05-27 10:55:34 +0000
committerBernhard Reutner-Fischer2008-05-27 10:55:34 +0000
commitb85fb693c149e6e574b4693c3abadfb554bb18dc (patch)
tree5a02d581d4235ec8d86f8122bca0dd21f55026e9 /modutils/depmod.c
parent4fec3469668faf0022d32fc195c9451523219cb2 (diff)
downloadbusybox-b85fb693c149e6e574b4693c3abadfb554bb18dc.zip
busybox-b85fb693c149e6e574b4693c3abadfb554bb18dc.tar.gz
- Add config option for DEFAULT_DEPMOD_FILE and DEFAULT_DEPMOD_FILE.
No obj-code changes.
Diffstat (limited to 'modutils/depmod.c')
-rw-r--r--modutils/depmod.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/modutils/depmod.c b/modutils/depmod.c
index 34483dc..9faf9c3 100644
--- a/modutils/depmod.c
+++ b/modutils/depmod.c
@@ -11,12 +11,6 @@
#include <libbb.h>
#include <sys/utsname.h> /* uname() */
-#ifndef DEFAULT_MODULES_DIR
-#define DEFAULT_MODULES_DIR "/lib/modules"
-#endif
-#ifndef DEFAULT_DEPMOD_FILE
-#define DEFAULT_DEPMOD_FILE "modules.dep"
-#endif
/*
* Theory of operation:
* - iterate over all modules and record their full path
@@ -138,7 +132,7 @@ int depmod_main(int ATTRIBUTE_UNUSED argc, char **argv)
/* if no modules are given on the command-line, -a is on per default */
option_mask32 |= *argv == NULL;
- moddir = concat_path_file(DEFAULT_MODULES_DIR, chp);
+ moddir = concat_path_file(CONFIG_DEFAULT_MODULES_DIR, chp);
// if (ENABLE_FEATURE_CLEAN_UP)
// free(chp);
if (option_mask32 & ARG_b) {
@@ -149,7 +143,7 @@ int depmod_main(int ATTRIBUTE_UNUSED argc, char **argv)
}
if (!(option_mask32 & ARG_n)) { /* --dry-run */
- chp = concat_path_file(moddir, DEFAULT_DEPMOD_FILE);
+ chp = concat_path_file(moddir, CONFIG_DEFAULT_DEPMOD_FILE);
filedes = xfopen(chp, "w");
if (ENABLE_FEATURE_CLEAN_UP)
free(chp);