summaryrefslogtreecommitdiff
path: root/saswall
diff options
context:
space:
mode:
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
-