[prev in list] [next in list] [prev in thread] [next in thread] 

List:       busybox
Subject:    [BusyBox] modprobe in busybox
From:       rmy () tigress ! co ! uk
Date:       2001-11-26 8:57:04
[Download RAW message or body]

Erik,

Recently modprobe has been added to busybox.  There are a couple of problems
with this (aside from the fact that it doesn't handle module dependencies).

The code to build the insmod command line is this:

    sprintf(cmd, "insmod %s %s %s",
            do_syslog ? "-s" : "",
            quiet ? "-q" : "",
            autoclean ? "-k" : "");
    while (optind < argc) {
        strcat(cmd, argv[optind]);
        strcat(cmd, " ");
        optind++;
    }

If the '-k' flag is present the first module name is appended to it with no
intervening space, so insmod treats the module name as further options.

If the '-s' flag is given to modprobe it's passed on to insmod, but the
busybox implmentation of insmod doesn't support a '-s' flag.

Ron



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic