On Monday 18 October 2004 07:40, Ketan Mukadam wrote: > Hello, > > I am working on linux 2.4. > > Is it possible to remove the shell and insert my own program? > > In the file linux/init/main.c (line 598), is it possible to replace the > following code > > if (execute_command) > execve(execute_command,argv_init,envp_init); > execve("/sbin/init",argv_init,envp_init); > execve("/etc/init",argv_init,envp_init); > execve("/bin/init",argv_init,envp_init); > execve("/bin/sh",argv_init,envp_init); > > with one of my own program?? > > Thanks in advance > Just pass init=program to the kernel command line. --Russell > Ketan -- Russell Miller - rmiller@xxxxxxxxxxxx - Le Mars, IA Duskglow Consulting - Helping companies just like you to succeed for ~ 10 yrs. http://www.duskglow.com - 712-546-5886 -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/