Blame | Last modification | View Log | Download
#!/bin/sh## Copyright 1998 DeltaLink bv. All rights reserved#MODULE=SAPI_S7module=sapi_s7# Test existance of FLOPT environment variableif [ ${FLINK:=null} = 'null' ]thenecho ''echo environment FLINK not set ????echo ''exit 1fiechogrep '$VOLUME' $module.'$$$' | sed -e 's/$VOLUME =/Installing/'grep 'Serial Number' 'opt/delta.opt' | sed -e 's/*/for/'## Installe module files in FactoryLink system#flxinst .## update the titles and ctlist files#echo Updating titles and ctlist files...# Test if the SAPI_S7 task is present in the titles fileif grep SAPI_S7 $FLINK/ac/titles > /dev/nullthenecho already exists > /dev/nullelseecho 'sapi_s7.ac SAPI_S7 DeltaLink Sapi_S7 Protocol Driver' >> $FLINK/ac/titlesfi# Test if the sapi_s7 entry is present in the ctlist fileif grep sapi_s7 $FLINK/ctgen/ctlist > /dev/nullthenecho already exists > /dev/nullelseecho 'sapi_s7: sapis7m sapis7x sapis7p sapis7d' >> $FLINK/ctgen/ctlistfi# Test existance of FLOPT environment variableif [ ${FLOPT:=null} = 'null' ]thenecho ''echo environment FLOPT not set ????echo ''exit 1fi## Check if the DeltaLink option file exists#if [ ! -s $FLOPT/delta.opt ]thencp opt/delta.opt $FLOPT/delta.optfiinst_seq -M$MODULE -Sopt/delta.opt