[prev in list] [next in list] [prev in thread] [next in thread]
List: kernelnewbies
Subject: Re: Linux Without shell
From: Russell Miller <rmiller () duskglow ! com>
Date: 2004-10-18 13:43:48
Message-ID: 200410180843.49158.rmiller () duskglow ! com
[Download RAW message or body]
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@duskglow.com - 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/
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic