#!/bin/sh arreglar_FOCUS() { ya_esta=`grep devas /lcom/FOCUS` if [ "$ya_esta"x = x ] then sed -s 's/cobrun $\*/cobrun $\*\ if \[ \$\? = 26 \] \ then\ dir=\`pwd\`\ cd \/opt\/lib\/mflmf\ \.\/devas\ cd \"$dir\"\ cobrun \$\*\ fi /g' /lcom/FOCUS > /tmp/FOCUS && mv /tmp/FOCUS /lcom/FOCUS chmod 777 /lcom/FOCUS fi } arreglar_RUN() { ya_esta=`grep devas /lcom/RUN` if [ "$ya_esta"x = x ] then sed -s 's/cobrun $\*/cobrun $\*\ if \[ \$\? = 26 \] \ then\ dir=\`pwd\`\ cd \/opt\/lib\/mflmf\ \.\/devas\ cd \"$dir\"\ cobrun \$\*\ fi /g' /lcom/RUN > /tmp/RUN && mv /tmp/RUN /lcom/RUN chmod 777 /lcom/RUN fi } arreglar_run() { ya_esta=`grep devas /lcom/run` if [ "$ya_esta"x = x ] then sed -s 's/cobrun $\*/cobrun $\*\ if \[ \$\? = 26 \] \ then\ dir=\`pwd\`\ cd \/opt\/lib\/mflmf\ \.\/devas\ cd \"$dir\"\ cobrun \$\*\ fi /g' /lcom/run > /tmp/run && mv /tmp/run /lcom/run chmod 777 /lcom/run fi } ############################################################################### ############################################################################### ## Mato al servidor de licencias si esta en marcha ## (sino no me cuadra ) killall mflm_manager ### Do you agree to the terms of the License Agreement? (y/n):### echo "y" >/tmp/COSA ### WARNING: unable to find sockets library /usr/lib/libc ### CCITCP requires support from this library. Executables linked without this ### library cannot run applications that use CCITCP functionality. ### If you require this support, you will need to install the ### TCP/IP Development System libraries prior to installation of your COBOL system. ### Do you wish to continue this installation? (y/n) uname -r | grep "x86_64" if [ $? = 0 ] then echo "y" >>/tmp/COSA fi ### q(uit) or or RETURN for default(/usr/bin): ########### echo "/usr/bin" >>/tmp/COSA ### Do you wish to continue with the LMF installation now? (y/n)# echo "y" >>/tmp/COSA ### (Press Enter for default directory /opt/lib/mflmf) ########## echo "/opt/lib/mflmf">>/tmp/COSA ### Do you want to proceed with installation into /opt/lib/mflmf (y/n)### echo "y" >>/tmp/COSA ### Do you want only superuser to be able to access the License Admin System? (y/n)### echo "n" >>/tmp/COSA ### Do you want license manager to be automatically started at boot time? (y/n) ### echo "y" >>/tmp/COSA echo "I" >/tmp/OTRACOSA echo "600000000722TY+" >>/tmp/OTRACOSA echo "030401U260014AD59419C6D9" >>/tmp/OTRACOSA rm -r /opt/lib/mflmf cd /tmp tar zxvf /ALFA/LICENCIA.gz cd /tmp/cobol /tmp/cobol/install < /tmp/COSA cd /opt/lib/mflmf /lcom/CLAVE ./mflmcmd < /tmp/OTRACOSA echo "./devas" >> /etc/mflmrcscript if [ -x /lcom/FOCUS ] then arreglar_FOCUS fi if [ -x /lcom/RUN ] then arreglar_RUN fi if [ -x /lcom/run ] then arreglar_run fi if [ -f /ALFA/EXE/OO/ARRANQUE ] then sh /ALFA/EXE/OO/ARRANQUE fi