Debian Codegraph @

qa/self/load/send

raw symbols SCIP
1 #!/bin/sh
2
3 ip=`ifconfig | grep -A10 en0 | grep "inet " | head -1 | awk '{ print $2; }'`
4 if [ "$ip" = "" ]
5 then
6 ip=`ifconfig | grep -A10 en1 | grep "inet " | head -1 | awk '{ print $2; }'`
7 fi
8 if [ "$ip" = "" ]
9 then
10 ip=`ifconfig | grep -A10 vnic0 | grep "inet " | head -1 | awk '{ print $2; }'`
11 fi
12 if [ "$ip" != "" ]
13 then
14 cat send.template | sed -e "s/IP/$ip/" > send.conf
15 env exabgp.log.processes=false exabgp.log.reactor=false exabgp.tcp.bind="$ip" exabgp.tcp.port=1790 ../../../sbin/exabgp send.conf $*
16 else
17 echo "get some IP somewhere on this machine please"
18 fi