From ff388ca5c4e38cf98da726a271fa85c146382d66 Mon Sep 17 00:00:00 2001 From: Tom Eastep Date: Sat, 15 May 2010 12:46:47 -0700 Subject: [PATCH] Detect the 'closed' state in the status command Signed-off-by: Tom Eastep --- Shorewall-lite/shorewall-lite | 2 +- Shorewall/shorewall | 2 +- Shorewall6-lite/shorewall6-lite | 2 +- Shorewall6/shorewall6 | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Shorewall-lite/shorewall-lite b/Shorewall-lite/shorewall-lite index 0c7ac9c20..3e6037af0 100755 --- a/Shorewall-lite/shorewall-lite +++ b/Shorewall-lite/shorewall-lite @@ -613,7 +613,7 @@ case "$COMMAND" in if [ -f ${VARDIR}/state ]; then state="$(cat ${VARDIR}/state)" case $state in - Stopped*|Clear*) + Stopped*|Closed*|Clear*) status=3 ;; esac diff --git a/Shorewall/shorewall b/Shorewall/shorewall index 8ec28bd8e..650edae77 100755 --- a/Shorewall/shorewall +++ b/Shorewall/shorewall @@ -1679,7 +1679,7 @@ case "$COMMAND" in if [ -f ${VARDIR}/state ]; then state="$(cat ${VARDIR}/state)" case $state in - Stopped*|Clear*) + Stopped*|Closed*|Clear*) status=3 ;; esac diff --git a/Shorewall6-lite/shorewall6-lite b/Shorewall6-lite/shorewall6-lite index 215634ffe..4cf27d8ba 100755 --- a/Shorewall6-lite/shorewall6-lite +++ b/Shorewall6-lite/shorewall6-lite @@ -593,7 +593,7 @@ case "$COMMAND" in if [ -f ${VARDIR}/state ]; then state="$(cat ${VARDIR}/state)" case $state in - Stopped*|Clear*) + Stopped*|Closed*|Clear*) status=3 ;; esac diff --git a/Shorewall6/shorewall6 b/Shorewall6/shorewall6 index b4a5aebd6..17bf6390f 100755 --- a/Shorewall6/shorewall6 +++ b/Shorewall6/shorewall6 @@ -1598,7 +1598,7 @@ case "$COMMAND" in if [ -f ${VARDIR}/state ]; then state="$(cat ${VARDIR}/state)" case $state in - Stopped*|Clear*) + Stopped*|Closed*|Clear*) status=3 ;; esac