Process shorewall.conf correctly during [re]load

git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@5914 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
teastep 2007-04-13 19:36:34 +00:00
parent 863a33ed0a
commit 7036b48573

View File

@ -1103,12 +1103,7 @@ reload_command() # $* = original arguments less the command.
if [ -n "$getcaps" ]; then
if [ -f $directory/shorewall.conf ]; then
MODULESDIR=$(grep '^\s*MODULESDIR=' $directory/shorewall.conf | tail -n 1)
MODULESDIR=${MODULESDIR#*=}
IPTABLES=$(grep '^\s*MODULE_SUFFIX=' $directory/shorewall.conf | tail -n 1)
IPTABLES=${MODULE_SUFFIX#*=}
IPTABLES=$(grep '^\s*IPTABLES=' $directory/shorewall.conf | tail -n 1)
IPTABLES=${IPTABLES#*=}
. $directory/shorewall.conf
fi
progress_message "Getting Capabilities on system $system..."