diff options
author | Christian Pointner <equinox@spreadspace.org> | 2016-01-30 21:36:00 +0100 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2016-01-30 21:36:00 +0100 |
commit | 009f7210f4b40452da04806aa185f1c104eb4f25 (patch) | |
tree | cb3f670b91b5d2dce76edfebabe67b6f4d1b7b87 /saswall | |
parent | also install initscript/service files (diff) |
fixed error when ther is no rules file
Diffstat (limited to 'saswall')
-rwxr-xr-x | saswall | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -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 - |