forked from epics_driver_modules/require
search all network interfaces for first broadcast address (e.g. in case IFC starts on eth1)
This commit is contained in:
@@ -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\""
|
||||
|
||||
Reference in New Issue
Block a user