make stage1 usable as modprobe
This commit is contained in:
parent
3085a93992
commit
525175acb0
10
stage1.c
10
stage1.c
@ -376,9 +376,17 @@ int main(int argc, char **argv, char **env)
|
||||
char * pcmcia_adapter = NULL;
|
||||
char buf[128];
|
||||
|
||||
open_log();
|
||||
if (strstr(argv[0], "modprobe"))
|
||||
{
|
||||
if (argc == 4)
|
||||
return(my_insmod(argv[argc-1], ANY_DRIVER_TYPE, NULL));
|
||||
else
|
||||
return(255);
|
||||
}
|
||||
|
||||
spawn_interactive();
|
||||
|
||||
open_log();
|
||||
getversion();
|
||||
log_message("welcome to the %s install (alt-stage1, built " __DATE__ " " __TIME__")", version);
|
||||
process_cmdline();
|
||||
|
Loading…
Reference in New Issue
Block a user