script ksh in OS image

hello everybody,

i’d like run a ksh script in a Os image but it isn’t started after boot;
the code is :

#… after photon
devc-con -n6
waitfor /dev/con1

reopen /dev/con1
[+session] ksh -c /etc/system/test_script
reopen /dev/con2
[+session] ksh

}

ksh

at the end .mkifs

[perms=0777] /etc/system/test_script={
#PCMCIA and USB
if test /dev/pccard -ef /dev/pccard; then
pccard-launch ‘0x0400,devb-eide eide ioport=0x300,irq=10’ &
fi
if ! test /dev/io-usb -ef /dev/io-usb; then
io-usb -duhci
devb-umass cam pnp &
fi
}

i don’t undestand because if i try to run it once photon started then the script run well ??(pidin arg give us process : pccard-launch, io-usb and devb-mass)!
What have i forgotten in the OS image ?

thanks

fabien

it’s ok,
i’ve just discovered that the & means the process is asynchronous with the below…