pkgsrc/net/exabgp/patches/patch-dev_self_simple_second
pettai 1d729f522b Unlike BIRD or Quagga, ExaBGP was not designed to transform a general purpose
server into a router, but to allow engineers to control their BGP (rfc4271)
network easily. Think of it as Software Defined Networking for people with
"commodity" routers.

ExaBGP transform BGP (rfc4271) messages into friendly plain text or JSON
which can be easily manipulate by scripts.

It allows the creation of tools such as:
 * advanced looking glass graphically display the routing of prefix
 * high availability tool which automatically isolate broken services
 * DDOS mitigation
 * an anycasted server
2013-12-15 22:22:44 +00:00

20 lines
557 B
Text

$NetBSD: patch-dev_self_simple_second,v 1.1 2013/12/15 22:22:44 pettai Exp $
Portability fix
--- dev/self/simple/second.orig 2013-11-26 10:04:26.000000000 +0000
+++ dev/self/simple/second
@@ -1,11 +1,11 @@
#!/bin/sh
ip=`ifconfig | grep -A10 en0 | grep "inet " | head -1 | awk '{ print $2; }'`
-if [ "$ip" == "" ]
+if [ "$ip" = "" ]
then
ip=`ifconfig | grep -A10 en1 | grep "inet " | head -1 | awk '{ print $2; }'`
fi
-if [ "$ip" == "" ]
+if [ "$ip" = "" ]
then
ip=`ifconfig | grep -A10 vnic0 | grep "inet " | head -1 | awk '{ print $2; }'`
fi