<html><div style='background-color:'><P><BR>hi all,</P>
<P>&nbsp;&nbsp;&nbsp;&nbsp; I think the bug is "execv" function.</P>
<P>&nbsp;&nbsp;&nbsp;&nbsp; Execv function invoke '/etc/rc.d/rc.sysint', 
error message is "/etc/rc.d/rc.sysinit :Exec format error".</P>
<P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; At the same time if you replace execv 
function parameter into a ap path that is like "/bin/ap". The ap funtion is 
call shell script '/etc/rc.d/rc.sysinit'.It&nbsp;was runing fine. So it is 
no shell bug.</P>
<P>&nbsp;&nbsp;&nbsp; In the kernel source directory. ../fs/binfmt_elf.c 
and binfmt_script.c</P>
<P>&nbsp;&nbsp;&nbsp;&nbsp;I&nbsp;think the execv funcion had no 
include&nbsp;binfmt_script function.right?&nbsp;</P>
<P>&nbsp;&nbsp; <BR></P><BR><BR><BR>
<DIV><FONT face="Courier New, Courier, Monospace" color=#0066ff>
<DIV>
<P><FONT face="Courier New, Courier, Monospace" color=#0066ff>Best 
Regard!</FONT></P>
<P><FONT face="Courier New, Courier, Monospace"><EM>Robin 
Chen&nbsp;</EM></FONT></P>
<P><FONT face="Times New Roman, Times, Serif" color=#000033 
size=3><EM>--</EM></FONT></P>
<P>
<P><EM><FONT face="Courier New"><FONT 
color=#0000ff></FONT></FONT></EM></P><EM><FONT face="Courier New"><A 
href="http://www.uli.com.tw/"></A></FONT></EM></P></DIV></FONT><EM><FONT 
face="Courier New"></FONT></EM></DIV>
<BLOCKQUOTE style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: 
#a0c6e5 2px solid; MARGIN-RIGHT: 0px"><FONT style="FONT-SIZE: 11px; 
FONT-FAMILY: tahoma,sans-serif">
<HR color=#a0c6e5 SIZE=1>
From: <I>"Siddharth Taneja" &lt;staneja@packetdesign.com&gt;</I><BR>To: 
<I>"Mike Frysinger" &lt;vapier@gentoo.org&gt;</I><BR>CC: 
<I>busybox@busybox.net</I><BR>Subject: <I>Re: rcS shell?</I><BR>Date: 
<I>Sat, 10 Dec 2005 11:12:19 -0800 (PST)</I><BR>&gt; &gt; On Fri, Dec 09, 
2005 at 10:52:00PM -0800, Siddharth Taneja wrote:<BR>&gt; &gt;&gt; PLATFORM 
=`customscript -p`<BR>&gt; &gt;<BR>&gt; &gt; the space after the var name 
is illegal<BR>&gt; &gt; PLATFORM=`customscript -p`<BR>&gt; &gt;<BR>&gt; 
&gt;&gt; if [ $PLATFORM = "myplat"] ; then<BR>&gt; &gt;<BR>&gt; &gt; 
everyone else already pointed out the space you're missing here<BR>&gt; 
&gt;<BR>&gt; &gt; however, you should also quote $PLATFORM because if it 
contains spaces,<BR>&gt; &gt; it will trigger errors too<BR>&gt; &gt; if [ 
"$PLATFORM" = "myplat" ] ; then<BR>&gt; &gt; -mike<BR>&gt; &gt; 
_______________________________________________<BR>&gt; &gt; busybox 
mailing list<BR>&gt; &gt; busybox@busybox.net<BR>&gt; &gt; 
http://busybox.net/cgi-bin/mailman/listinfo/busybox<BR>&gt; &gt;<BR>&gt;Hi 
All,<BR>&gt;<BR>&gt;Thanks for the reply.<BR>&gt;<BR>&gt;The code that I 
wrote here was just an example code and I am sure that the<BR>&gt;original 
code is syntactically correct.<BR>&gt;<BR>&gt;But the problem is that the 
*same* code which was running fine for years<BR>&gt;through rcS with 
BB_INIT and BB_LINUXRC options (BB default shell msh)<BR>&gt;does not work 
when it is put in linuxrc ( BB is not configured with<BR>&gt;BB_INIT and 
BB_LINUXRC optins and the defalt shell is still msh).<BR>&gt;<BR>&gt;This 
is the reason why I am wondering if a script executed through 
rcS<BR>&gt;uses a different setting (like some other shell) with the 
proper<BR>&gt;enviornment setup while with linuxrc it is not 
so.<BR>&gt;<BR>&gt;Thanks<BR>&gt;<BR>&gt;Siddharth<BR>&gt;<BR>&gt;_______________________________________________<BR>&gt;busybox 
mailing 
list<BR>&gt;busybox@busybox.net<BR>&gt;http://busybox.net/cgi-bin/mailman/listinfo/busybox<BR></FONT></BLOCKQUOTE></div></html>