diff options
Diffstat (limited to 'meta/packages/busybox/busybox-1.01/below.patch')
| -rw-r--r-- | meta/packages/busybox/busybox-1.01/below.patch | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/meta/packages/busybox/busybox-1.01/below.patch b/meta/packages/busybox/busybox-1.01/below.patch new file mode 100644 index 0000000000..ec97b29962 --- /dev/null +++ b/meta/packages/busybox/busybox-1.01/below.patch | |||
| @@ -0,0 +1,49 @@ | |||
| 1 | Index: modutils/modprobe.c | ||
| 2 | =================================================================== | ||
| 3 | RCS file: /var/cvs/busybox/modutils/modprobe.c,v | ||
| 4 | retrieving revision 1.41 | ||
| 5 | diff -u -r1.41 modprobe.c | ||
| 6 | --- busybox/modutils/modprobe.c 24 Sep 2004 09:18:55 -0000 1.41 | ||
| 7 | +++ busybox/modutils/modprobe.c 29 Dec 2004 11:56:07 -0000 | ||
| 8 | @@ -357,6 +357,41 @@ | ||
| 9 | } | ||
| 10 | } | ||
| 11 | } | ||
| 12 | + else if ((strncmp (buffer, "below", 5) == 0) && isspace (buffer[5])) { | ||
| 13 | + char *mod, *deps; | ||
| 14 | + if (parse_tag_value (buffer + 6, &mod, &deps)) { | ||
| 15 | + struct dep_t *dt; | ||
| 16 | + | ||
| 17 | + for (dt = first; dt; dt = dt->m_next) { | ||
| 18 | + if (strcmp (dt->m_name, mod) == 0) | ||
| 19 | + break; | ||
| 20 | + } | ||
| 21 | + if (dt) { | ||
| 22 | + char *pp; | ||
| 23 | + char *name; | ||
| 24 | + | ||
| 25 | + pp = name = deps; | ||
| 26 | + | ||
| 27 | + for (;;) { | ||
| 28 | + while (*pp != 0 && !isspace (*pp)) | ||
| 29 | + pp++; | ||
| 30 | + if (isspace (*pp)) | ||
| 31 | + *(pp++) = 0; | ||
| 32 | + | ||
| 33 | + dt->m_depcnt++; | ||
| 34 | + dt->m_deparr = (char **) xrealloc (dt->m_deparr, | ||
| 35 | + sizeof (char *) * dt->m_depcnt); | ||
| 36 | + dt->m_deparr[dt->m_depcnt - 1] = bb_xstrdup (name); | ||
| 37 | + | ||
| 38 | + while (isspace (*pp)) | ||
| 39 | + pp++; | ||
| 40 | + name = pp; | ||
| 41 | + if (*pp == 0) | ||
| 42 | + break; | ||
| 43 | + } | ||
| 44 | + } | ||
| 45 | + } | ||
| 46 | + } | ||
| 47 | } | ||
| 48 | } | ||
| 49 | close ( fd ); | ||
