diff --git a/Shorewall-common/shorewall b/Shorewall-common/shorewall index 1c1f4ddfe..7772fa605 100755 --- a/Shorewall-common/shorewall +++ b/Shorewall-common/shorewall @@ -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..."