echo -text "Installing EX provisions"

text -filename $BOOTPATH/s4peio.eng -package 0
text -filename $BOOTPATH/purge.$LANG -package 0
text -filename $BOOTPATH/pnt_elog.$LANG -package 0


ifvc -label VC_PNT
config -filename $BOOTPATH/eioaca.cfg -domain EIO
config -filename $BOOTPATH/eioaca0.cfg -domain EIO -internal
setvar -var 10 -value 0
getkey -id "IrbSelect" -var 10 -strvar $ANSWER -errlabel EIOAMA
ifstr -strvar $ANSWER -value "IRB540_02_T00F11B21V21m1H21m1" -label SIMAMA
ifstr -strvar $ANSWER -value "IRB540_12_T00F11B21V21m1H21m1" -label SIMAMA
ifstr -strvar $ANSWER -value "IRB540_15_T00F11B21V21m1H21m1" -label SIMAMA
ifstr -strvar $ANSWER -value "IRB540_05_T00F11B21V21m2H21m1" -label SIMAMA
#EIOAMA
config -filename $BOOTPATH/eioama.cfg -domain EIO
goto -label NEXT
#SIMAMA
config -filename $BOOTPATH/simama2.cfg -domain EIO
#NEXT
goto -label VC_SKIP
#VC_PNT

config -filename $BOOTPATH/simaca.cfg -domain EIO
config -filename $BOOTPATH/simaca0.cfg -domain EIO -internal
config -filename $BOOTPATH/simama.cfg -domain EIO
#VC_SKIP

config -filename $BOOTPATH/s4peio.cfg -domain EIO -internal
config -filename $BOOTPATH/s4pmmc.cfg -domain MMC -internal
config -filename $BOOTPATH/s4psio.cfg -domain SIO

ifvc -label VC_PNT2
config -filename $BOOTPATH/pnt_sys.cfg -domain SIO
goto -label VC_SKIP2
#VC_PNT2
config -filename $BOOTPATH/pnt_vc.cfg -domain SIO
#VC_SKIP2
copy -from $BOOTPATH/paint.sys -to paint.sys

#Stiff stop
config -filename $BOOTPATH/pw_eio2.cfg -domain EIO 
config -filename $BOOTPATH/pw_mmc.cfg -domain MMC -replace

#Brakes
setvar -var 10 -value 0
getkey -id "BrakeCFG" -var 10 -strvar $ANSWER -errlabel NEXT
goto -strvar $ANSWER
#NEXT
setvar -var 10 -value 0
getkey -id "IrbSelect" -var 10 -strvar $ANSWER -errlabel NEXT
ifstr -strvar $ANSWER -value "IRB580_02_T00F11B21V21H31" -label IRB580
ifstr -strvar $ANSWER -value "IRB580_02_T00F11B21V21H31m1" -label IRB580

ifstr -strvar $ANSWER -value "IRB580_03_T11F21B21V21H31" -label IRB580_0304
ifstr -strvar $ANSWER -value "IRB580_03_T11F21B21V21H31m1" -label IRB580_0304
ifstr -strvar $ANSWER -value "IRB580_03_T11F21B21V21H31_sm" -label IRB580_0304
ifstr -strvar $ANSWER -value "IRB580_03_T11F21B21V21H31m1_sm" -label IRB580_0304
ifstr -strvar $ANSWER -value "IRB580_04_T21F41B21V21H31_sm" -label IRB580_0304
ifstr -strvar $ANSWER -value "IRB580_04_T21F41B21V21H31m1_sm" -label IRB580_0304

ifstr -strvar $ANSWER -value "IRB540_02_T00F11B21V21H21" -label IRB540
ifstr -strvar $ANSWER -value "IRB540_02_T00F11B21V21H21m1" -label IRB540
ifstr -strvar $ANSWER -value "IRB540_02_T00F11B21V21m1H21m1" -label IRB540_S

ifstr -strvar $ANSWER -value "IRB5400_02_T00F11B11V12H11" -label IRB5402
ifstr -strvar $ANSWER -value "IRB5400_02_T00F11B11V12m2H11" -label IRB5402
ifstr -strvar $ANSWER -value "IRB5400_02_T00F11B11V12H12" -label IRB5402
ifstr -strvar $ANSWER -value "IRB5400_02_T00F11B11V12m2H12" -label IRB5402
ifstr -strvar $ANSWER -value "IRB5400_02_T00F11B11V12H41" -label IRB5402
ifstr -strvar $ANSWER -value "IRB5400_02_T00F11B11V12m1H41" -label IRB5402

ifstr -strvar $ANSWER -value "IRB5400_03_T11F21B11V12H11" -label IRB5403_5407
ifstr -strvar $ANSWER -value "IRB5400_03_T11F21B11V12H11_sm" -label IRB5403_5407
ifstr -strvar $ANSWER -value "IRB5400_03_T11m1F21B11V12H11" -label IRB5403_5407
ifstr -strvar $ANSWER -value "IRB5400_03_T11m1F21B11V12H11_sm" -label IRB5403_5407
ifstr -strvar $ANSWER -value "IRB5400_03_T11F21B11V12m2H11_sm" -label IRB5403_5407
ifstr -strvar $ANSWER -value "IRB5400_03_T11F21B11V12H12" -label IRB5403_5407
ifstr -strvar $ANSWER -value "IRB5400_03_T11F21B11V12H12_sm" -label IRB5403_5407
ifstr -strvar $ANSWER -value "IRB5400_03_T11F21B11V12m2H12_sm" -label IRB5403_5407
ifstr -strvar $ANSWER -value "IRB5400_03_T11F21B11V12H41" -label IRB5403_5407
ifstr -strvar $ANSWER -value "IRB5400_03_T11F21B11V12H41_sm" -label IRB5403_5407
ifstr -strvar $ANSWER -value "IRB5400_03_T11F21B11V12m1H41_sm" -label IRB5403_5407
ifstr -strvar $ANSWER -value "IRB5400_03_T11m2F21B11V12m2H11_sm" -label IRB5403_5407
ifstr -strvar $ANSWER -value "IRB5400_03_T11m1F21B11V12m2H11_sm" -label IRB5403_5407

ifstr -strvar $ANSWER -value "IRB5400_04_T21F41B11V12H11" -label IRB5403_5407
ifstr -strvar $ANSWER -value "IRB5400_04_T21F41B11V12H11_sm" -label IRB5403_5407
ifstr -strvar $ANSWER -value "IRB5400_04_T21m1F41B11V12H11_sm" -label IRB5403_5407
ifstr -strvar $ANSWER -value "IRB5400_04_T21F41B11V12m2H11_sm" -label IRB5403_5407
ifstr -strvar $ANSWER -value "IRB5400_04_T21F41B11V12H12" -label IRB5403_5407
ifstr -strvar $ANSWER -value "IRB5400_04_T21F41B11V12H12_sm" -label IRB5403_5407
ifstr -strvar $ANSWER -value "IRB5400_04_T21F41B11V12m2H12_sm" -label IRB5403_5407
ifstr -strvar $ANSWER -value "IRB5400_04_T21F41B11V12H41" -label IRB5403_5407
ifstr -strvar $ANSWER -value "IRB5400_04_T21F41B11V12H41_sm" -label IRB5403_5407
ifstr -strvar $ANSWER -value "IRB5400_04_T21F41B11V12m1H41_sm" -label IRB5403_5407
ifstr -strvar $ANSWER -value "IRB5400_04_T21F41m1B11V12m2H11_sm" -label IRB5403_5407
ifstr -strvar $ANSWER -value "IRB5400_04_T21m1F41B11V12m2H11_sm" -label IRB5403_5407

ifstr -strvar $ANSWER -value "IRB5400_07_T31F51B11m1V11H11" -label IRB5400_07
ifstr -strvar $ANSWER -value "IRB5400_17_T31F51B13V13H13" -label IRB5400_17

ifstr -strvar $ANSWER -value "IRB5300_02_T00F11A11C11D11" -label IRB5404
ifstr -strvar $ANSWER -value "IRB5300_03_T11F21A11C11D11" -label IRB5406
ifstr -strvar $ANSWER -value "IRB5300_04_T21F41A11C11D11" -label IRB5406

ifstr -strvar $ANSWER -value "IRS5423" -label IRS5423
ifstr -strvar $ANSWER -value "IRT5453_XB" -label IRT54
ifstr -strvar $ANSWER -value "IRT5454_2B" -label IRT54
ifstr -strvar $ANSWER -value "IRT5454_3B" -label IRT54
ifstr -strvar $ANSWER -value "IRT5455_3B" -label IRT54
ifstr -strvar $ANSWER -value "IRT5455_4B" -label IRT54
ifstr -strvar $ANSWER -value "IRT5464_XB" -label IRT54
ifstr -strvar $ANSWER -value "IRT5465_2B" -label IRT54
ifstr -strvar $ANSWER -value "IRT5465_3B" -label IRT54
ifstr -strvar $ANSWER -value "IRT5466_3B" -label IRT54
ifstr -strvar $ANSWER -value "IRT5466_4B" -label IRT54
#NEXT
config -filename $BOOTPATH/br5402.cfg -domain EIO
goto -label END_MAN

#IRB580
config -filename $BOOTPATH/br580.cfg -domain EIO
goto -label END_MAN
#IRB580_0304
config -filename $BOOTPATH/br580_7axe.cfg -domain EIO
goto -label END_MAN
#IRB540
setvar -var 10 -value 0
getkey -id "CPprov" -var 10 -strvar $ANSWER -errlabel NEXT
goto -strvar $ANSWER
#CPprov
config -filename $BOOTPATH/br540cp.cfg -domain EIO
goto -label END_MAN
#NEXT
config -filename $BOOTPATH/br540.cfg -domain EIO
goto -label END_MAN
#IRB540_S
config -filename $BOOTPATH/brs540.cfg -domain EIO
goto -label END_MAN
#IRB5402
config -filename $BOOTPATH/br5402.cfg -domain EIO
goto -label END_MAN
#IRB5403_5407
config -filename $BOOTPATH/br7axe.cfg -domain EIO
goto -label END_MAN
#IRB5400_07
config -filename $BOOTPATH/br8axe.cfg -domain EIO 
goto -label END_MAN
#IRB5400_17
config -filename $BOOTPATH/br8axe_17.cfg -domain EIO 
goto -label END_MAN
#IRB5404
config -filename $BOOTPATH/br5404.cfg -domain EIO
goto -label END_MAN
#IRB5406
config -filename $BOOTPATH/br5406.cfg -domain EIO
goto -label END_MAN
#IRS5423
config -filename $BOOTPATH/brSide.cfg -domain EIO
goto -label END_MAN
#IRT54  
config -filename $BOOTPATH/brTop.cfg -domain EIO
goto -label END_MAN
#IRB5400
config -filename $BOOTPATH/br5400.cfg -domain EIO
goto -label END_MAN
#END_MAN
getkey -id "BrExtAxis" -var 10 -strvar $ANSWER -errlabel END
goto -strvar $ANSWER
#ADDJ7
config -filename $BOOTPATH/braxis7.cfg -domain EIO
#END
append -from $BOOTPATH/option.cmd -to option.cmd
#END_LABEL
echo -text "... done"