We may be able to use a second wan IP after all

master
Robert "ar" Gerus 2013-03-23 07:10:14 +01:00
parent e833daec81
commit 0087ca63d3
1 changed files with 7 additions and 0 deletions

View File

@ -17,6 +17,13 @@ HOST_AMANOJAKU="10.24.20.250"
#ROUTER
HOST_KASHA="10.24.0.1"
HOST_KASHA_WAN="192.168.0.11"
HOST_KASHA_WAN2="$(/sbin/ip -4 a s dev eth0 | awk '$1 == "inet" && $2 != "192.168.0.11/24" { print $2; exit }')
# will allow us to do things like: if ${HAVE_WAN2}; then ...
if [[ -z "${HOST_KASHA_WAN2}" ]]; then
HAVE_WAN2="/bin/true"
else
HAVE_WAN2="/bin/false"
fi
#AP
HOST_HYPERION="10.24.0.254"