rcS shell?

Tito farmatito at tiscali.it
Sat Dec 10 12:40:42 UTC 2005


On Saturday 10 December 2005 07:52, 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
Hi, try

if [ "$PLATFORM" = "myplat"]; then  

or maybe

if test "$PLATFORM" = "myplat"; then

Hope it helps.

Ciao,
Tito

> 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. Also I see that the PATH variable is not setup correctly in
> this scenario.
> 
> Can someone help me out with this?
> 
> Thanks
> 
> Siddharth
> 
> 
> _______________________________________________
> busybox mailing list
> busybox at busybox.net
> http://busybox.net/cgi-bin/mailman/listinfo/busybox
> 



More information about the busybox mailing list