From 232fc21fe23a67a3bc5be9bf944611c3c0d260b0 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 c6d8b8229..348b56a68 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 1d61cc0d6..6f9b371c7 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