build - branching in mkifs script files in QNX -


is possible add branching in scripts being used generate image using mkifs utility. i'm trying read file file , based on contents branch execution of drivers in script. such thing possible in mkifs utility?

[+script] .script = {     path=...     ld_library_path=...     display_msg myboot     testval=`cat /config/test.dat`     testlen={#testval}     if["$testlen" = 10]         #start mydriver1     else         #start mydriver2     ...     ... } 

i'm getting error "cat: /config/test.dat: no such file or directory".

i guess can create application spawns drivers instead of doing way. wondering why not possible in current way.

as far have seen, seems not possible.

so have written separate application, check conditions me , spawn needed drivers.

and removed drivers script , replaced them new application.


Comments