diff options
author | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2008-05-27 10:55:34 +0000 |
---|---|---|
committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2008-05-27 10:55:34 +0000 |
commit | b85fb693c149e6e574b4693c3abadfb554bb18dc (patch) | |
tree | 5a02d581d4235ec8d86f8122bca0dd21f55026e9 /modutils/depmod.c | |
parent | 4fec3469668faf0022d32fc195c9451523219cb2 (diff) | |
download | busybox-w32-b85fb693c149e6e574b4693c3abadfb554bb18dc.tar.gz busybox-w32-b85fb693c149e6e574b4693c3abadfb554bb18dc.tar.bz2 busybox-w32-b85fb693c149e6e574b4693c3abadfb554bb18dc.zip |
- 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.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/modutils/depmod.c b/modutils/depmod.c index 34483dc07..9faf9c302 100644 --- a/modutils/depmod.c +++ b/modutils/depmod.c | |||
@@ -11,12 +11,6 @@ | |||
11 | #include <libbb.h> | 11 | #include <libbb.h> |
12 | #include <sys/utsname.h> /* uname() */ | 12 | #include <sys/utsname.h> /* uname() */ |
13 | 13 | ||
14 | #ifndef DEFAULT_MODULES_DIR | ||
15 | #define DEFAULT_MODULES_DIR "/lib/modules" | ||
16 | #endif | ||
17 | #ifndef DEFAULT_DEPMOD_FILE | ||
18 | #define DEFAULT_DEPMOD_FILE "modules.dep" | ||
19 | #endif | ||
20 | /* | 14 | /* |
21 | * Theory of operation: | 15 | * Theory of operation: |
22 | * - iterate over all modules and record their full path | 16 | * - iterate over all modules and record their full path |
@@ -138,7 +132,7 @@ int depmod_main(int ATTRIBUTE_UNUSED argc, char **argv) | |||
138 | /* if no modules are given on the command-line, -a is on per default */ | 132 | /* if no modules are given on the command-line, -a is on per default */ |
139 | option_mask32 |= *argv == NULL; | 133 | option_mask32 |= *argv == NULL; |
140 | 134 | ||
141 | moddir = concat_path_file(DEFAULT_MODULES_DIR, chp); | 135 | moddir = concat_path_file(CONFIG_DEFAULT_MODULES_DIR, chp); |
142 | // if (ENABLE_FEATURE_CLEAN_UP) | 136 | // if (ENABLE_FEATURE_CLEAN_UP) |
143 | // free(chp); | 137 | // free(chp); |
144 | if (option_mask32 & ARG_b) { | 138 | if (option_mask32 & ARG_b) { |
@@ -149,7 +143,7 @@ int depmod_main(int ATTRIBUTE_UNUSED argc, char **argv) | |||
149 | } | 143 | } |
150 | 144 | ||
151 | if (!(option_mask32 & ARG_n)) { /* --dry-run */ | 145 | if (!(option_mask32 & ARG_n)) { /* --dry-run */ |
152 | chp = concat_path_file(moddir, DEFAULT_DEPMOD_FILE); | 146 | chp = concat_path_file(moddir, CONFIG_DEFAULT_DEPMOD_FILE); |
153 | filedes = xfopen(chp, "w"); | 147 | filedes = xfopen(chp, "w"); |
154 | if (ENABLE_FEATURE_CLEAN_UP) | 148 | if (ENABLE_FEATURE_CLEAN_UP) |
155 | free(chp); | 149 | free(chp); |