rcS shell?

Steven Scholz steven.scholz at imc-berlin.de
Sat Dec 10 13:28:47 UTC 2005

Siddharth Taneja wrote:
> Hi,
> I would like to know what the default shell used by rcS is when BB is used
> with the BB_INIT and BB_LINUXRC option. I have some lines of script like-
> PLATFORM =`customscript -p`
> if [ $PLATFORM = "myplat"] ; then
>     # do some stuff
> fi
> I have a custom initrd and use BB with it. If I put these lines in rcS and
> use BB with the above two options (BB_INIT and BB_LINUXRC) (and default
> shell as msh -provided by BB)everything works fine.
> But if I use BB without these options and put these lines in the linuxrc
> file (with the default shell being msh -provided by BB) it spits out
> synatx error.

Maybe because of the missing space!


 if [ $PLATFORM = "myplat" ] ; then


More information about the busybox mailing list