diff options
author | Robert "ar" Gerus <ar@bash.org.pl> | 2013-03-23 07:37:04 +0100 |
---|---|---|
committer | Robert "ar" Gerus <ar@bash.org.pl> | 2013-03-23 07:37:04 +0100 |
commit | 7077a94512971ea7e5e5ad3edfc83e5a809373fa (patch) | |
tree | 947ddaf67571edb6d7164f9f5d1576469977806c | |
parent | b1c6f069d918173865ead02059a34293e52f2db7 (diff) | |
download | old-firewall-7077a94512971ea7e5e5ad3edfc83e5a809373fa.tar.gz old-firewall-7077a94512971ea7e5e5ad3edfc83e5a809373fa.tar.bz2 old-firewall-7077a94512971ea7e5e5ad3edfc83e5a809373fa.tar.xz old-firewall-7077a94512971ea7e5e5ad3edfc83e5a809373fa.zip |
Oh, that would be painful if it hit...
-rw-r--r-- | fw.globals | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -17,15 +17,13 @@ HOST_AMANOJAKU="10.24.20.250" #ROUTER HOST_KASHA="10.24.0.1" 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 }')" # 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" else HAVE_WAN2="/bin/false" fi -set +x #AP HOST_HYPERION="10.24.0.254" |