summaryrefslogtreecommitdiff
path: root/saswall
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2016-01-30 21:36:00 +0100
committerChristian Pointner <equinox@spreadspace.org>2016-01-30 21:36:00 +0100
commit009f7210f4b40452da04806aa185f1c104eb4f25 (patch)
treecb3f670b91b5d2dce76edfebabe67b6f4d1b7b87 /saswall
parentalso install initscript/service files (diff)
fixed error when ther is no rules file
Diffstat (limited to 'saswall')
-rwxr-xr-xsaswall10
1 files changed, 7 insertions, 3 deletions
diff --git a/saswall b/saswall
index b6f2ab0..1027b6d 100755
--- a/saswall
+++ b/saswall
@@ -29,11 +29,16 @@
##
##
+SASWALL_CONFIRM_TIMEOUT=20 # may get overwritten by rules.sh!!
+
+if [ ! -x /etc/saswall/rules.sh ]; then
+ echo "no rules file found or script is not executeable - firewall is disabled!!"
+ exit 0
+fi
+
trap saswall_signal INT TERM
trap saswall_exit EXIT
-SASWALL_CONFIRM_TIMEOUT=20 # may get overwritten by rules.sh!!
-
. /etc/saswall/rules.sh
saswall_signal()
@@ -141,4 +146,3 @@ reload)
esac
exit 0
-