From cc561c0b6124bc2b2ac831f18a2ed4c822869ec0 Mon Sep 17 00:00:00 2001 From: Tom Eastep Date: Fri, 23 Apr 2010 11:54:36 -0700 Subject: [PATCH] Allow find_first_interface_address[_if_any] to work properly in the params file. Signed-off-by: Tom Eastep --- Shorewall/shorewall | 2 ++ Shorewall6/shorewall6 | 2 ++ 2 files changed, 4 insertions(+) diff --git a/Shorewall/shorewall b/Shorewall/shorewall index e63278858..b83e1631a 100755 --- a/Shorewall/shorewall +++ b/Shorewall/shorewall @@ -39,6 +39,8 @@ get_config() { ensure_config_path if [ "$1" = Yes ]; then + [ -n "${IP:=ip}" ] + params=$(find_file params) if [ -f $params ]; then diff --git a/Shorewall6/shorewall6 b/Shorewall6/shorewall6 index 65ab1d6ee..075b61ddb 100755 --- a/Shorewall6/shorewall6 +++ b/Shorewall6/shorewall6 @@ -39,6 +39,8 @@ get_config() { ensure_config_path if [ "$1" = Yes ]; then + [ -n "${IP:=ip}" ] + params=$(find_file params) if [ -f $params ]; then