aboutsummaryrefslogtreecommitdiff
path: root/modutils/modprobe.c
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2010-07-25 00:13:27 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2010-07-25 00:13:27 +0200
commit503a07cab24a1e58099a04970babd2b761469449 (patch)
treef96b01fd405adcbcbeed0086389da27bd1a07ccc /modutils/modprobe.c
parentb2d95147c989448f23cc59c63b83e2d89f0bd9cd (diff)
downloadbusybox-w32-503a07cab24a1e58099a04970babd2b761469449.tar.gz
busybox-w32-503a07cab24a1e58099a04970babd2b761469449.tar.bz2
busybox-w32-503a07cab24a1e58099a04970babd2b761469449.zip
Apply post-1.17.0 fixes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'modutils/modprobe.c')
-rw-r--r--modutils/modprobe.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/modutils/modprobe.c b/modutils/modprobe.c
index b4de65b1f..0a9424293 100644
--- a/modutils/modprobe.c
+++ b/modutils/modprobe.c
@@ -483,6 +483,11 @@ int modprobe_main(int argc UNUSED_PARAM, char **argv)
483 opt = getopt32(argv, INSMOD_OPTS MODPROBE_OPTS INSMOD_ARGS); 483 opt = getopt32(argv, INSMOD_OPTS MODPROBE_OPTS INSMOD_ARGS);
484 argv += optind; 484 argv += optind;
485 485
486 /* Goto modules location */
487 xchdir(CONFIG_DEFAULT_MODULES_DIR);
488 uname(&uts);
489 xchdir(uts.release);
490
486 if (opt & MODPROBE_OPT_LIST_ONLY) { 491 if (opt & MODPROBE_OPT_LIST_ONLY) {
487 char name[MODULE_NAME_LEN]; 492 char name[MODULE_NAME_LEN];
488 char *colon, *tokens[2]; 493 char *colon, *tokens[2];
@@ -524,11 +529,6 @@ int modprobe_main(int argc UNUSED_PARAM, char **argv)
524 return EXIT_SUCCESS; 529 return EXIT_SUCCESS;
525 } 530 }
526 531
527 /* Goto modules location */
528 xchdir(CONFIG_DEFAULT_MODULES_DIR);
529 uname(&uts);
530 xchdir(uts.release);
531
532 /* Retrieve module names of already loaded modules */ 532 /* Retrieve module names of already loaded modules */
533 { 533 {
534 char *s; 534 char *s;