Make '[re]load' observe the -C directive

git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@6403 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
teastep 2007-05-18 21:34:51 +00:00
parent 76154f579b
commit fb16fd6d6e

View File

@ -1067,7 +1067,7 @@ rcp_command() {
#
reload_command() # $* = original arguments less the command.
{
local verbose=$(make_verbose) file= capabilities= finished=0 saveit= result directory system getcaps= root=root
local verbose=$(make_verbose) file= capabilities= finished=0 saveit= result directory system getcaps= root=root compiler=
[ -n "$LITEDIR" ] || fatal_error "ERROR: LITEDIR not defined in ${SHAREDIR}/configpath"
@ -1099,7 +1099,7 @@ reload_command() # $* = original arguments less the command.
;;
C)
[ $# -gt 1 ] || fatal_error "-C must be followed by a compiler name"
SHOREWALL_COMPILER=$2
compiler="-C $2"
option=
shift
;;
@ -1155,7 +1155,7 @@ reload_command() # $* = original arguments less the command.
file=$(resolve_file $directory/firewall)
if shorewall $debugging $verbose compile -e $directory $directory/firewall && \
if shorewall $debugging $verbose compile -e $compiler $directory $directory/firewall && \
progress_message "Copying $file and ${file}.conf to ${system}:${LITEDIR}..." && \
rcp_command "$directory/firewall $directory/firewall.conf" ${LITEDIR}
then