From 6f4b6b015034ab57532ff2bf82e07f9d717dbd66 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Mon, 31 Jan 2005 16:56:57 +0000 Subject: add a dhcp-client built using mdk-stage1 code --- mdk-stage1/modules.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'mdk-stage1/modules.c') diff --git a/mdk-stage1/modules.c b/mdk-stage1/modules.c index 3ba947e1f..01b342cd1 100644 --- a/mdk-stage1/modules.c +++ b/mdk-stage1/modules.c @@ -444,7 +444,16 @@ enum insmod_return my_insmod(const char * mod_name, enum driver_type type __attr if (IS_TESTING) return INSMOD_OK; +#ifdef ENABLE_NETWORK_STANDALONE + { + char *cmd = options ? asprintf_("/sbin/modprobe %s %s", mod_name, options) : + asprintf_("/sbin/modprobe %s", mod_name); + log_message("running %s", cmd); + i = system(cmd); + } +#else i = insmod_with_deps(real_mod_name, options, allow_modules_floppy); +#endif if (i == 0) { log_message("\tsucceeded %s", real_mod_name); #ifndef DISABLE_NETWORK -- cgit v1.2.1