From 2aa7d1d52ec83045408ee51d77c9517916cda9a5 Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Mon, 27 Aug 2007 12:16:46 +0000 Subject: allow debug mode to go further when loading modules --- mdk-stage1/modules.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/mdk-stage1/modules.c b/mdk-stage1/modules.c index 428b12460..882e617fe 100644 --- a/mdk-stage1/modules.c +++ b/mdk-stage1/modules.c @@ -64,6 +64,9 @@ int insmod_local_file(char * path, char * options) unsigned long len; int rc; + if (IS_TESTING) + return 0; + file = grab_file(path, &len); if (!file) { @@ -91,9 +94,6 @@ static int load_modules_dependencies(void) log_message("loading modules dependencies"); - if (IS_TESTING) - return 0; - fd = open(deps_file, O_RDONLY); if (fd == -1) { log_perror(deps_file); @@ -284,9 +284,6 @@ enum insmod_return my_insmod(const char * mod_name, enum driver_type type __attr net_devices = get_net_devices(); #endif - if (IS_TESTING) - return INSMOD_OK; - #ifdef ENABLE_NETWORK_STANDALONE { char *cmd = options ? asprintf_("/sbin/modprobe %s %s", mod_name, options) : -- cgit v1.2.1