diff --git a/openwrt/openwrt-nat64-bootstrap.sh b/openwrt/openwrt-nat64-bootstrap.sh index 167d718..aab739a 100755 --- a/openwrt/openwrt-nat64-bootstrap.sh +++ b/openwrt/openwrt-nat64-bootstrap.sh @@ -9,14 +9,17 @@ # - do not provide IPv4 or IPv6 dhcp/ra on any interface if [ $# -lt 4 ] ; then - echo $0 "address hostname nat64prefix asn iBGPpeer1 [iBGPpeer2...]" + echo $0 "address hostname nat64prefix nat64route asn routerid iBGPpeer1 [iBGPpeer2...]" exit 1 fi address=$1; shift hostname=$1; shift -nat64=$1; shift +nat64prefix=$1; shift +nat64route=$1; shift asn=$1; shift +routerid=$1; shift +ibgp_peers="$@" # Now $@ only contains iBGP peers @@ -36,8 +39,32 @@ uci set system.@system[0].hostname="${hostname}" # Do something wireless (?) # disable? -echo "Setting up ibgp for $@ .." +echo "Setting up bird ..." + +cat > /etc/bird.conf <> /etc/bird.conf <