From 45aff976bd9c02036a1188bfe330b07f2e5b0f7a Mon Sep 17 00:00:00 2001 From: Antoine Ginies Date: Wed, 19 Jan 2011 16:36:45 +0000 Subject: use init_firmware_loader(), add handle_hid --- mdk-stage1/stage1.c | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/mdk-stage1/stage1.c b/mdk-stage1/stage1.c index 80961d426..73f3fc4db 100644 --- a/mdk-stage1/stage1.c +++ b/mdk-stage1/stage1.c @@ -34,6 +34,8 @@ #include #include #include +#include + #include "stage1.h" @@ -242,11 +244,23 @@ static void handle_pcmcia(void) } #endif +#ifndef ENABLE_NETWORK_STANDALONE +static void handle_hid(void) +{ + struct hid_entries entry_list; + unsigned int i; + + entry_list = hid_probe(); + for (i = 0; i < entry_list.nb; i++) { + if (entry_list.entries[i].module != NULL) + my_insmod(entry_list.entries[i].module, ANY_DRIVER_TYPE, NULL, 0); + } +} + /************************************************************ */ -#ifndef ENABLE_NETWORK_STANDALONE static void method_select_and_prepare(void) { enum return_type results; @@ -410,7 +424,7 @@ int main(int argc __attribute__ ((unused)), char **argv __attribute__ ((unused)) spawn_shell(); #endif init_modules_insmoding(); -// init_firmware_timeout(); + init_firmware_loader(); init_frontend("Welcome to " DISTRIB_DESCR ", " __DATE__ " " __TIME__); probe_that_type(VIRTIO_DEVICES, BUS_ANY); @@ -425,6 +439,7 @@ int main(int argc __attribute__ ((unused)), char **argv __attribute__ ((unused)) if (!IS_NOAUTO) handle_pcmcia(); #endif + handle_hid(); if (IS_CHANGEDISK) stg1_info_message("You are starting the installation with an alternate booting method. " -- cgit v1.2.1