From d8b630e09d3dcfec02ed1fdd003e96ab62a615a3 Mon Sep 17 00:00:00 2001 From: bbruns Date: Sat, 18 Dec 2010 21:34:36 +0000 Subject: [PATCH] Add more support code for auto detection --- bin/firewall-sosdg | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/bin/firewall-sosdg b/bin/firewall-sosdg index b755676..7d5d4c9 100755 --- a/bin/firewall-sosdg +++ b/bin/firewall-sosdg @@ -110,6 +110,11 @@ if [[ "$EXTIF" == "auto" ]]; then display_c YELLOW "Found default interface at: ${BLUE}${EXTIF}${DEFAULT_COLOR}" fi +if [[ "$EXTIP" == "auto" ]]; then + EXTIP=$EXTIP_FIND + display_c YELLOW "Found default interface IP at: ${BLUE}${EXTIP}${DEFAULT_COLOR}" +fi + iptables_rules_flush ipv4 if [ -s "$BASEDIR/include/ipv4_custom_flush" ]; then