#******************************************************************************
#				ARCHI-CLARIN
#		  		   ver 1.0
#			        INSTALL NODE
#
# NOTE: use with: install-node install
#******************************************************************************
#version
#copy ver to /home/SYSNODE
cp ver /home/SYSNODE/version
#
#LOOP-U
#copy files to chn21 
cp LOOP-U/loopU /home/chn21/loopU
cp LOOP-U/uloopd /home/chn21/uloopd
cp LOOP-U/run /home/chn21/run
#
#LOOP-R
#copy files to chn22
cp LOOP-R/loopR /home/chn22/loopR 
cp LOOP-R/rloopd /home/chn22/rloopd
cp LOOP-R/run /home/chn22/run
#
#SERVER-S
#copy files to /home/SYSNODE
cp SERVER-S/mserverS /home/SYSNODE/mserverS
cp SERVER-S/runserverS /home/SYSNODE/runserverS
cp SERVER-S/SERVER_ID /home/SYSNODE/SERVER_ID
#
#MAIN-LOOP
#copy files to /home/SYSNODE/
cp MAIN-LOOP/mloopNODE /home/SYSNODE/mloopNODE
cp MAIN-LOOP/mountRAM /home/SYSNODE/mountRAM
cp MAIN-LOOP/md5m /home/SYSNODE/md5m
cp MAIN-LOOP/mk_image /home/SYSNODE/mk_image
cp MAIN-LOOP/regen /home/SYSNODE/regen
#
#CLIENT-N
#copy files to /home/SYSNODE
cp CLIENT-N/clientNR /home/SYSNODE/clientNR
cp CLIENT-N/clientNW /home/SYSNODE/clientNW
cp CLIENT-N/from-buffer-to-node /home/SYSNODE/from-buffer-to-node
cp CLIENT-N/from-node-to-buffer /home/SYSNODE/from-node-to-buffer
cp CLIENT-N/MD-from-buffer-to-node /home/SYSNODE/MD-from-buffer-to-node
cp CLIENT-N/MD-from-node-to-buffer /home/SYSNODE/MD-from-node-to-buffer
cp CLIENT-N/READ-ROBR /home/SYSNODE/READ-ROBR
cp CLIENT-N/READ-ROBU /home/SYSNODE/READ-ROBU
#
cp CLIENT-N/run_read /home/SYSNODE/run_read
cp CLIENT-N/run_readMD /home/SYSNODE/run_readMD
cp CLIENT-N/run_read_robR /home/SYSNODE/run_read_robR
cp CLIENT-N/run_read_robU /home/SYSNODE/run_read_robU
cp CLIENT-N/run_write /home/SYSNODE/run_write
cp CLIENT-N/run_writeMD /home/SYSNODE/run_writeMD
#
#
#DAEMON MAIN-LOOP
cp AT_BOOT/mloopNd /etc/init.d/mloopNd
#
#
#add main-loop as service to the list of services
chkconfig --add mloopNd
chkconfig --level 35 mloopNd on



