diff options
-rw-r--r-- | modutils/modprobe-small.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/modutils/modprobe-small.c b/modutils/modprobe-small.c index d6f481415..431b8aeb2 100644 --- a/modutils/modprobe-small.c +++ b/modutils/modprobe-small.c | |||
@@ -928,7 +928,9 @@ int modprobe_main(int argc UNUSED_PARAM, char **argv) | |||
928 | /* Prevent ugly corner cases with no modules at all */ | 928 | /* Prevent ugly corner cases with no modules at all */ |
929 | modinfo = xzalloc(sizeof(modinfo[0])); | 929 | modinfo = xzalloc(sizeof(modinfo[0])); |
930 | 930 | ||
931 | if (is_depmod || is_modprobe) { | 931 | if ((MOD_APPLET_CNT == 2 && ENABLE_DEPMOD && ENABLE_MODPROBE) |
932 | || is_depmod || is_modprobe | ||
933 | ) { | ||
932 | /* Goto modules directory */ | 934 | /* Goto modules directory */ |
933 | xchdir(CONFIG_DEFAULT_MODULES_DIR); | 935 | xchdir(CONFIG_DEFAULT_MODULES_DIR); |
934 | uname(&uts); /* never fails */ | 936 | uname(&uts); /* never fails */ |