summaryrefslogtreecommitdiff
path: root/package/busybox/busybox-1.17.0/busybox-1.17.0-modprobe-l.patch
diff options
context:
space:
mode:
authorPeter Korsgaard <jacmet@sunsite.dk>2010-07-12 14:16:38 +0200
committerPeter Korsgaard <jacmet@sunsite.dk>2010-07-12 14:16:38 +0200
commit387754249806a6f438575368ce1694786b3a4084 (patch)
tree93954b5e6d61bd00b21ffb80e2ddae651283955b /package/busybox/busybox-1.17.0/busybox-1.17.0-modprobe-l.patch
parent3169aae85ef4b26aec667376b0559b38582ccf52 (diff)
busbox: add 1.17.0 upstream fixes
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Diffstat (limited to 'package/busybox/busybox-1.17.0/busybox-1.17.0-modprobe-l.patch')
-rw-r--r--package/busybox/busybox-1.17.0/busybox-1.17.0-modprobe-l.patch27
1 files changed, 27 insertions, 0 deletions
diff --git a/package/busybox/busybox-1.17.0/busybox-1.17.0-modprobe-l.patch b/package/busybox/busybox-1.17.0/busybox-1.17.0-modprobe-l.patch
new file mode 100644
index 000000000..496a59928
--- /dev/null
+++ b/package/busybox/busybox-1.17.0/busybox-1.17.0-modprobe-l.patch
@@ -0,0 +1,27 @@
+diff -urpN busybox-1.17.0/modutils/modprobe.c busybox-1.17.0-modprobe-l/modutils/modprobe.c
+--- busybox-1.17.0/modutils/modprobe.c 2010-06-24 04:40:43.000000000 +0200
++++ busybox-1.17.0-modprobe-l/modutils/modprobe.c 2010-07-10 01:25:42.000000000 +0200
+@@ -483,6 +483,11 @@ int modprobe_main(int argc UNUSED_PARAM,
+ opt = getopt32(argv, INSMOD_OPTS MODPROBE_OPTS INSMOD_ARGS);
+ argv += optind;
+
++ /* Goto modules location */
++ xchdir(CONFIG_DEFAULT_MODULES_DIR);
++ uname(&uts);
++ xchdir(uts.release);
++
+ if (opt & MODPROBE_OPT_LIST_ONLY) {
+ char name[MODULE_NAME_LEN];
+ char *colon, *tokens[2];
+@@ -524,11 +529,6 @@ int modprobe_main(int argc UNUSED_PARAM,
+ return EXIT_SUCCESS;
+ }
+
+- /* Goto modules location */
+- xchdir(CONFIG_DEFAULT_MODULES_DIR);
+- uname(&uts);
+- xchdir(uts.release);
+-
+ /* Retrieve module names of already loaded modules */
+ {
+ char *s;