On Wed, Jun 3, 2009 at 2:37 AM, Barney Barumba<[email protected]> wrote:
> I'm building a buildroot / busybox ARM system, using:
>
> buildroot-2009-05
> busybox-1.14.1
>
> When I try to bring an interface up I'm getting a "run-parts not-found"
> error, and none of the "/etc/network/if-up.d" scripts are executed.
>
> run-parts is present on the system, and appears to run correctly when
> called directly:
>
> # ifup eth0
> /bin/sh: run-parts: not found
>
> # which run-parts
> /bin/run-parts
...
> If anyone has any ideas as to what may be going on here they would be
> much appreciated.

Strange.
You can debug it. In ifupdown.c, here:

static int doit(char *str)
{
        if (option_mask32 & (OPT_no_act|OPT_verbose)) {
                puts(str);
        }
        if (!(option_mask32 & OPT_no_act)) {
                pid_t child;
                int status;

                fflush(NULL);
                child = vfork();
                switch (child) {
                case -1: /* failure */
                        return 0;
                case 0: /* child */
                        execle(DEFAULT_SHELL, DEFAULT_SHELL, "-c",
str, (char *) NULL, my_environ);
                        _exit(127);
                }


Add these lines:

bb_error_msg("startup_PATH:%s", startup_PATH);
{ char **pp = my_environ;
  while (*pp) bb_error_msg("env:%s", *pp++);
}

just before execle call. What do you see?
--
vda
_______________________________________________
busybox mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/busybox

Reply via email to