diff options
author | Olivier Blin <oblin@mandriva.com> | 2007-10-23 10:21:25 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.com> | 2007-10-23 10:21:25 +0000 |
commit | b2103fcbcede869a43cc48097f64b428f8fe05f8 (patch) | |
tree | fbe785072049d437dc7c2e38560b9e7b3afefec8 /mdk-stage1 | |
parent | f083e5be9bdfe0e25e3f08cb7ea1c95331ad526e (diff) | |
download | drakx-b2103fcbcede869a43cc48097f64b428f8fe05f8.tar drakx-b2103fcbcede869a43cc48097f64b428f8fe05f8.tar.gz drakx-b2103fcbcede869a43cc48097f64b428f8fe05f8.tar.bz2 drakx-b2103fcbcede869a43cc48097f64b428f8fe05f8.tar.xz drakx-b2103fcbcede869a43cc48097f64b428f8fe05f8.zip |
allow to probe USB bus only
Diffstat (limited to 'mdk-stage1')
-rw-r--r-- | mdk-stage1/probe-modules.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/mdk-stage1/probe-modules.c b/mdk-stage1/probe-modules.c index 4c440aa16..55ff7df1d 100644 --- a/mdk-stage1/probe-modules.c +++ b/mdk-stage1/probe-modules.c @@ -18,6 +18,9 @@ #include "probing.h" #include "frontend.h" #include <stdlib.h> +#include <sys/stat.h> +#include <string.h> +#include "utils.h" void exit_bootsplash(void) {} void stg1_error_message(char *msg, ...) @@ -33,11 +36,15 @@ void fatal_error(char *msg) exit(EXIT_FAILURE); } -int main(int argc __attribute__ ((unused)), char **argv __attribute__ ((unused)), char **env) +int main(int argc, char **argv, char **env) { + enum media_bus bus = BUS_ANY; + if (argc > 1 && streq(argv[1], "usb")) { + bus = BUS_USB; + } open_log(); init_modules_insmoding(); - find_media(BUS_ANY); + find_media(bus); close_log(); return 0; |