summaryrefslogtreecommitdiff
path: root/packages/busybox/busybox-1.2.2/below.patch
diff options
context:
space:
mode:
authorKoen Kooi <koen@openembedded.org>2006-10-28 16:46:42 +0000
committerKoen Kooi <koen@openembedded.org>2006-10-28 16:46:42 +0000
commit636c4d45c334995c2fa1bdbd72617bdfab30e850 (patch)
tree7e287d663575ea2594c10573bf24a31f6078e12a /packages/busybox/busybox-1.2.2/below.patch
parentd92174e738d4e8a0674a9bc7c2d5a0e777e9d936 (diff)
busybox: add support files for 1.2.2
Diffstat (limited to 'packages/busybox/busybox-1.2.2/below.patch')
-rw-r--r--packages/busybox/busybox-1.2.2/below.patch46
1 files changed, 46 insertions, 0 deletions
diff --git a/packages/busybox/busybox-1.2.2/below.patch b/packages/busybox/busybox-1.2.2/below.patch
new file mode 100644
index 0000000000..95e8376e46
--- /dev/null
+++ b/packages/busybox/busybox-1.2.2/below.patch
@@ -0,0 +1,46 @@
+Index: busybox-1.1.0/modutils/modprobe.c
+===================================================================
+--- busybox-1.1.0.orig/modutils/modprobe.c 2006-01-11 06:43:56.000000000 +0100
++++ busybox-1.1.0/modutils/modprobe.c 2006-03-14 16:36:54.000000000 +0100
+@@ -509,6 +509,41 @@
+ }
+ }
+ }
++ else if ((strncmp (buffer, "below", 5) == 0) && isspace (buffer[5])) {
++ char *mod, *deps;
++ if (parse_tag_value (buffer + 6, &mod, &deps)) {
++ struct dep_t *dt;
++
++ for (dt = first; dt; dt = dt->m_next) {
++ if (strcmp (dt->m_name, mod) == 0)
++ break;
++ }
++ if (dt) {
++ char *pp;
++ char *name;
++
++ pp = name = deps;
++
++ for (;;) {
++ while (*pp != 0 && !isspace (*pp))
++ pp++;
++ if (isspace (*pp))
++ *(pp++) = 0;
++
++ dt->m_depcnt++;
++ dt->m_deparr = (char **) xrealloc (dt->m_deparr,
++ sizeof (char *) * dt->m_depcnt);
++ dt->m_deparr[dt->m_depcnt - 1] = bb_xstrdup (name);
++
++ while (isspace (*pp))
++ pp++;
++ name = pp;
++ if (*pp == 0)
++ break;
++ }
++ }
++ }
++ }
+ }
+ }
+ close ( fd );