summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2016-01-30 20:36:00 (GMT)
committerChristian Pointner <equinox@spreadspace.org>2016-01-30 20:36:00 (GMT)
commit009f7210f4b40452da04806aa185f1c104eb4f25 (patch)
treecb3f670b91b5d2dce76edfebabe67b6f4d1b7b87
parent961fa8aa0ca13fcf023a4686d4317c3dad8dc3d0 (diff)
fixed error when ther is no rules file
-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
-