Re: how to write custom init

2001-01-12 Thread diman
On Fri, 12 Jan 2001, Soumen Biswas wrote: > Hi , > > What are the points to be observed while writing custom init > > I am currently doing something like : > /* > 1. never exit >2. open fd 0,1 & 2 >3. link statically */ > > int main( int argc, char **argv ) > { > int fd ;

Re: how to write custom init

2001-01-12 Thread Poul-Henning Kamp
You may want to check out sysinstalls initialization, it is used to run as /sbin/init when you boot from installation media Poul-Henning In message <001201c07c8d$4276f8a0$[EMAIL PROTECTED]>, "Soumen Biswas" writ es: >Hi , > >What are the points to be observed while writing custom init > >I a

how to write custom init

2001-01-12 Thread Soumen Biswas
Hi , What are the points to be observed while writing custom init I am currently doing something like : /* 1. never exit 2. open fd 0,1 & 2 3. link statically */ int main( int argc, char **argv ) { int fd ; char cmd[128] = {0}; fd = open( "/dev/console", O_RDWR ); dup(fd); du