Oh, that would be painful if it hit...
parent
b1c6f069d9
commit
7077a94512
|
@ -17,15 +17,13 @@ HOST_AMANOJAKU="10.24.20.250"
|
||||||
#ROUTER
|
#ROUTER
|
||||||
HOST_KASHA="10.24.0.1"
|
HOST_KASHA="10.24.0.1"
|
||||||
HOST_KASHA_WAN="192.168.0.11"
|
HOST_KASHA_WAN="192.168.0.11"
|
||||||
set -x
|
|
||||||
HOST_KASHA_WAN2="$(ip -4 a s dev eth0 | awk '$1 == "inet" && $2 != "192.168.0.11/24" { print $2; exit }')"
|
HOST_KASHA_WAN2="$(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 ...
|
# will allow us to do things like: if ${HAVE_WAN2}; then ...
|
||||||
if [[ -z "${HOST_KASHA_WAN2}" ]]; then
|
if [[ ! -z "${HOST_KASHA_WAN2}" ]]; then
|
||||||
HAVE_WAN2="/bin/true"
|
HAVE_WAN2="/bin/true"
|
||||||
else
|
else
|
||||||
HAVE_WAN2="/bin/false"
|
HAVE_WAN2="/bin/false"
|
||||||
fi
|
fi
|
||||||
set +x
|
|
||||||
#AP
|
#AP
|
||||||
HOST_HYPERION="10.24.0.254"
|
HOST_HYPERION="10.24.0.254"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue