search all network interfaces for first broadcast address (e.g. in case IFC starts on eth1)

This commit is contained in:
2015-10-20 16:11:46 +02:00
parent bf969feef4
commit 86eb673c35
+1 -1
View File
@@ -357,7 +357,7 @@ fi
if [ "$SHELLBOX" ]
then
PATH=$PATH:/home/ioc/bin
export BCAST_ADDR=$(/sbin/ifconfig eth0 | awk -F '[ :]+' '/Bcast/ {print $6}')
export BCAST_ADDR=$(/sbin/ifconfig | awk -F '[ :]+' '/Bcast/ {print $6; exit}')
echo "! rm -f /tmp/${IOC}.dbl"
echo 'dbl "","RTYP DESC" > /tmp/${IOC}.dbl'
echo "! dbl2odb.sh ${IOC} \"$BCAST_ADDR\" \"$EPICS_CA_SERVER_PORT\""