Debian Codegraph @

qa/self/load/send

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