2009/9/28 Michael Schnell <mschn...@lumino.de>

> You can use any executable as "init", either by calling the file "init",
> doing a link called "init" or define the file in the Kernel parameters.
>

I have write a small c program (only use the "system()" function to run
/etc/rc), and build as "init".
after boot, /etc/rc have been executed, but still displayed "Kernel panic -
not syncing: Attempted to kill init!"
and can not enter the shell terminal.




> You can use a script as an executable by defining the interpreter in the
> first line e.g. as
>
> #!/bin/msh
>
> Anyway msh is depreciated since some time, you should use hush instead.
>
> -Michael
> _______________________________________________
> uClinux-dev mailing list
> uClinux-dev@uclinux.org
> http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
> This message was resent by uclinux-dev@uclinux.org
> To unsubscribe see:
> http://mailman.uclinux.org/mailman/options/uclinux-dev
>



-- 
wzc0066
_______________________________________________
uClinux-dev mailing list
uClinux-dev@uclinux.org
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by uclinux-dev@uclinux.org
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev

Reply via email to