wok-current diff busybox/stuff/busybox-1.12.0-modprobe.u @ rev 5657

Up: libogg (1.2.0)
author Alexander Medvedev <devl547@gmail.com>
date Sun May 30 02:45:16 2010 +0000 (2010-05-30)
parents 6e89af8c5f82
children
line diff
     1.1 --- a/busybox/stuff/busybox-1.12.0-modprobe.u	Mon Sep 29 18:12:27 2008 +0200
     1.2 +++ b/busybox/stuff/busybox-1.12.0-modprobe.u	Sun May 30 02:45:16 2010 +0000
     1.3 @@ -27,3 +27,27 @@
     1.4   	if (remove_opt) {
     1.5   		do {
     1.6   			/* (*argv) can be NULL here */
     1.7 +
     1.8 +--- busybox-1.12.0/modutils/modprobe.c
     1.9 ++++ busybox-1.12.0/modutils/modprobe.c
    1.10 +@@ -921,6 +921,20 @@
    1.11 + 	return rc;
    1.12 + }
    1.13 + 
    1.14 ++void mod_walk(void (*action)(char *name, char *path, void *env), void *data);
    1.15 ++void mod_walk(void (*action)(char *name, char *path, void *env), void *data)
    1.16 ++{
    1.17 ++	struct dep_t *dt;
    1.18 ++
    1.19 ++	depend = build_dep();
    1.20 ++	if (!depend)
    1.21 ++		bb_error_msg_and_die("cannot parse "CONFIG_DEFAULT_DEPMOD_FILE);
    1.22 ++
    1.23 ++	for (dt = depend; dt && dt->m_path; dt = dt->m_next) {
    1.24 ++		action(dt->m_name, dt->m_path, data);
    1.25 ++	}
    1.26 ++}
    1.27 ++
    1.28 + int modprobe_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
    1.29 + int modprobe_main(int argc UNUSED_PARAM, char **argv)
    1.30 + {