# totally generic vxWorks startup script #set ARCH according to vxWorks version and cpu type VX6=(*runtimeVersion>>24)&255-'5' VMI=(*runtimeVersion>>8)&255 ARCH=malloc(16) sprintf(ARCH,"%s%c-ppc60%d",VX6?"V6":"T",VX6?VMI:VMI>'3'?'2':'1',sysCpu-90) printf "ARCH=%s\n",ARCH #set target name as IOC name IOC=&sysBootParams+60 cd "/ioc" cd IOC BOOTPC=&sysBootHost # load IOC startup script < startup.script