if -var 77 -value 10 -label END_LABEL
setvar -var 77 -value 10
echo -text "Installing Medar Interface ..."

copy -from $BOOTPATH/MData.sys -to MData.sys

config -filename $BOOTPATH/m_sys.cfg -domain SYS

config -filename $BOOTPATH/m_sio.cfg -domain SIO -internal

config -filename $BOOTPATH/m_sio2.cfg -domain SIO

config -filename $BOOTPATH/m_eio.cfg -domain EIO

append -from $BOOTPATH/startup.m -to option.cmd

echo -text "Initiating UWM"
copy -from $BOOTPATH/uwmlist.cfg -to uwmlist.cfg
copy -from $BOOTPATH/Medar.cfg -to Medar.cfg
copy -from $BOOTPATH/Medar1.cfg -to Medar1.cfg
invoke -entry uwm_new
delete -path Medar.cfg
delete -path Medar1.cfg

#END_LABEL
