<html><div style='background-color:'><P><BR>hi all,</P>
<P> I think the bug is "execv" function.</P>
<P> Execv function invoke '/etc/rc.d/rc.sysint',
error message is "/etc/rc.d/rc.sysinit :Exec format error".</P>
<P> 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 was runing fine. So it is
no shell bug.</P>
<P> In the kernel source directory. ../fs/binfmt_elf.c
and binfmt_script.c</P>
<P> I think the execv funcion had no
include binfmt_script function.right? </P>
<P> <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 </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" <staneja@packetdesign.com></I><BR>To:
<I>"Mike Frysinger" <vapier@gentoo.org></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>> > On Fri, Dec 09,
2005 at 10:52:00PM -0800, Siddharth Taneja wrote:<BR>> >> PLATFORM
=`customscript -p`<BR>> ><BR>> > the space after the var name
is illegal<BR>> > PLATFORM=`customscript -p`<BR>> ><BR>>
>> if [ $PLATFORM = "myplat"] ; then<BR>> ><BR>> >
everyone else already pointed out the space you're missing here<BR>>
><BR>> > however, you should also quote $PLATFORM because if it
contains spaces,<BR>> > it will trigger errors too<BR>> > if [
"$PLATFORM" = "myplat" ] ; then<BR>> > -mike<BR>> >
_______________________________________________<BR>> > busybox
mailing list<BR>> > busybox@busybox.net<BR>> >
http://busybox.net/cgi-bin/mailman/listinfo/busybox<BR>> ><BR>>Hi
All,<BR>><BR>>Thanks for the reply.<BR>><BR>>The code that I
wrote here was just an example code and I am sure that the<BR>>original
code is syntactically correct.<BR>><BR>>But the problem is that the
*same* code which was running fine for years<BR>>through rcS with
BB_INIT and BB_LINUXRC options (BB default shell msh)<BR>>does not work
when it is put in linuxrc ( BB is not configured with<BR>>BB_INIT and
BB_LINUXRC optins and the defalt shell is still msh).<BR>><BR>>This
is the reason why I am wondering if a script executed through
rcS<BR>>uses a different setting (like some other shell) with the
proper<BR>>enviornment setup while with linuxrc it is not
so.<BR>><BR>>Thanks<BR>><BR>>Siddharth<BR>><BR>>_______________________________________________<BR>>busybox
mailing
list<BR>>busybox@busybox.net<BR>>http://busybox.net/cgi-bin/mailman/listinfo/busybox<BR></FONT></BLOCKQUOTE></div></html>