diff options
-rw-r--r-- | modutils/Config.src | 10 | ||||
-rw-r--r-- | modutils/modprobe-small.c | 6 |
2 files changed, 10 insertions, 6 deletions
diff --git a/modutils/Config.src b/modutils/Config.src index a15cce518..d0bae2ea3 100644 --- a/modutils/Config.src +++ b/modutils/Config.src | |||
@@ -159,7 +159,7 @@ config FEATURE_MODUTILS_SYMBOLS | |||
159 | config DEFAULT_MODULES_DIR | 159 | config DEFAULT_MODULES_DIR |
160 | string "Default directory containing modules" | 160 | string "Default directory containing modules" |
161 | default "/lib/modules" | 161 | default "/lib/modules" |
162 | depends on DEPMOD || MODPROBE || MODPROBE_SMALL || MODINFO | 162 | depends on DEPMOD || MODPROBE || MODINFO |
163 | help | 163 | help |
164 | Directory that contains kernel modules. | 164 | Directory that contains kernel modules. |
165 | Defaults to "/lib/modules" | 165 | Defaults to "/lib/modules" |
@@ -167,9 +167,13 @@ config DEFAULT_MODULES_DIR | |||
167 | config DEFAULT_DEPMOD_FILE | 167 | config DEFAULT_DEPMOD_FILE |
168 | string "Default name of modules.dep" | 168 | string "Default name of modules.dep" |
169 | default "modules.dep" | 169 | default "modules.dep" |
170 | depends on DEPMOD || MODPROBE || MODPROBE_SMALL || MODINFO | 170 | depends on DEPMOD || MODPROBE || MODINFO |
171 | help | 171 | help |
172 | Filename that contains kernel modules dependencies. | 172 | Filename that contains kernel modules dependencies. |
173 | Defaults to "modules.dep" | 173 | Defaults to "modules.dep". |
174 | If you configured the "simplified modutils" (MODPROBE_SMALL), a | ||
175 | ".bb" suffix will be added after this name. Do not specify ".bb" | ||
176 | here unless you intend your depmod or modprobe to work on | ||
177 | "modules.dep.bb.bb" or such. | ||
174 | 178 | ||
175 | endmenu | 179 | endmenu |
diff --git a/modutils/modprobe-small.c b/modutils/modprobe-small.c index 04242634b..726a3108c 100644 --- a/modutils/modprobe-small.c +++ b/modutils/modprobe-small.c | |||
@@ -934,11 +934,11 @@ int modprobe_main(int argc UNUSED_PARAM, char **argv) | |||
934 | /* Prevent ugly corner cases with no modules at all */ | 934 | /* Prevent ugly corner cases with no modules at all */ |
935 | modinfo = xzalloc(sizeof(modinfo[0])); | 935 | modinfo = xzalloc(sizeof(modinfo[0])); |
936 | 936 | ||
937 | if (!is_insmod) { | 937 | if (is_depmod || is_modprobe) { |
938 | /* Goto modules directory */ | 938 | /* Goto modules directory */ |
939 | xchdir(CONFIG_DEFAULT_MODULES_DIR); | 939 | xchdir(CONFIG_DEFAULT_MODULES_DIR); |
940 | uname(&uts); /* never fails */ | ||
940 | } | 941 | } |
941 | uname(&uts); /* never fails */ | ||
942 | 942 | ||
943 | /* depmod? */ | 943 | /* depmod? */ |
944 | if (is_depmod) { | 944 | if (is_depmod) { |
@@ -980,7 +980,7 @@ int modprobe_main(int argc UNUSED_PARAM, char **argv) | |||
980 | getopt32(argv, "qrfsvwb"); | 980 | getopt32(argv, "qrfsvwb"); |
981 | argv += optind; | 981 | argv += optind; |
982 | 982 | ||
983 | if (!is_insmod) { | 983 | if (is_modprobe) { |
984 | /* Goto $VERSION directory */ | 984 | /* Goto $VERSION directory */ |
985 | xchdir(uts.release); | 985 | xchdir(uts.release); |
986 | } | 986 | } |