From 86eb673c353a228827ce7cc55bbefb3d36ce8b2e Mon Sep 17 00:00:00 2001 From: Dirk Zimoch Date: Tue, 20 Oct 2015 16:11:46 +0200 Subject: [PATCH] search all network interfaces for first broadcast address (e.g. in case IFC starts on eth1) --- iocsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/iocsh b/iocsh index aa4b452..ad7d6f3 100755 --- a/iocsh +++ b/iocsh @@ -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\""