diff options
author | Christophe Fergeau <cfergeau@mandriva.com> | 2009-04-03 17:48:14 +0000 |
---|---|---|
committer | Christophe Fergeau <cfergeau@mandriva.com> | 2009-04-03 17:48:14 +0000 |
commit | 7d8e3589a5a82982ecf0030c12ed5d294842c88c (patch) | |
tree | 54fc769bf0299f859c4fc8156faa0f4e53871036 | |
parent | 74a89dce97472fefc59bf20deb915fc924fefef7 (diff) | |
download | drakx-7d8e3589a5a82982ecf0030c12ed5d294842c88c.tar drakx-7d8e3589a5a82982ecf0030c12ed5d294842c88c.tar.gz drakx-7d8e3589a5a82982ecf0030c12ed5d294842c88c.tar.bz2 drakx-7d8e3589a5a82982ecf0030c12ed5d294842c88c.tar.xz drakx-7d8e3589a5a82982ecf0030c12ed5d294842c88c.zip |
Load HID modules in stage1, fixes #47167
-rw-r--r-- | mdk-stage1/stage1.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/mdk-stage1/stage1.c b/mdk-stage1/stage1.c index 7c460036b..2c7bfdc83 100644 --- a/mdk-stage1/stage1.c +++ b/mdk-stage1/stage1.c @@ -34,6 +34,7 @@ #include <stdarg.h> #include <signal.h> #include <linux/unistd.h> +#include <libldetect.h> #include "stage1.h" @@ -242,6 +243,18 @@ static void handle_pcmcia(void) } #endif +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); + } +} + /************************************************************ */ @@ -424,6 +437,8 @@ int main(int argc __attribute__ ((unused)), char **argv __attribute__ ((unused)) handle_pcmcia(); #endif + handle_hid(); + if (IS_CHANGEDISK) stg1_info_message("You are starting the installation with an alternate booting method. " "Please change your disk, and insert the Installation disk."); |