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

update qt-4.4.1 to qt-4.5.0
author Allan Pinto <allan316@gmail.com>
date Wed Apr 29 09:28:07 2009 +0000 (2009-04-29)
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	Wed Apr 29 09:28:07 2009 +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 + {