From 98022f0cbc9c4a64310a7e1ff938fc14e10376a5 Mon Sep 17 00:00:00 2001 From: zimoch Date: Mon, 3 May 2004 12:58:41 +0000 Subject: [PATCH] Skip "VxWorks" from version string --- App/scripts/iocBootNotify.sh | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/App/scripts/iocBootNotify.sh b/App/scripts/iocBootNotify.sh index d7912bf..5698c1b 100755 --- a/App/scripts/iocBootNotify.sh +++ b/App/scripts/iocBootNotify.sh @@ -2,9 +2,14 @@ # # This script should only be called by the ioc at boot time. # The startup script should have the following line: -# rsh bootHost(),"cd",SLSBASE,";sls/bin/iocBootNotice.sh",bootInfo("TendFs"),vxWorksVersion,"'",epicsRelease1,"'" -# or -# bootNotice SLSBASE,"sls/bin/iocBootNotice.sh" +# bootNotify SLSBASE,"sls/bin/iocBootNotify.sh" + +if [ "$1" = "-v" ] +then + echo '$Author: zimoch $' + echo '$Source: /cvs/G/DRV/misc/App/scripts/iocBootNotify.sh,v $' + exit +fi if [ $# -lt 9 ] then @@ -20,7 +25,7 @@ PROCNUM=$3 DEVICE=$4 BOOTFILE=$5 SCRIPT=$6 -VXWORKSVER=$7 +VXWORKSVER=${7#VxWorks} EPICSVER=$8 ETHADDR=$9 if [ ! -L /ioc/$SYSTEM ] @@ -45,6 +50,7 @@ then else VXWORKS=$BOOTFILE fi + echo "I will put the following values to the database:" echo "SYSTEM=$SYSTEM" echo "IPADDR=$IPADDR"