make stage1 usable as modprobe

This commit is contained in:
Anton Farygin 2005-05-14 10:23:09 +00:00
parent 3085a93992
commit 525175acb0

View File

@ -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();