forked from extern/shorewall_code
Make export config file a bit cleaner
git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@4568 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
parent
d917972673
commit
bca1adfcf6
@ -4561,6 +4561,18 @@ __EOF__
|
||||
fi
|
||||
}
|
||||
|
||||
conditionally_add_option1() { # $1 = option name
|
||||
local value
|
||||
|
||||
eval value=\"\$$1\"
|
||||
|
||||
if [ -n "$value" ]; then
|
||||
cat >&3 << __EOF__
|
||||
$1="$value"
|
||||
__EOF__
|
||||
fi
|
||||
}
|
||||
|
||||
#
|
||||
# Compile a Firewall Script
|
||||
#
|
||||
@ -5278,9 +5290,12 @@ __EOF__
|
||||
# Shorewall auxiliary configuration file created by Shorewall version $VERSION - $(date)
|
||||
#
|
||||
__EOF__
|
||||
for option in VERBOSITY LOGFILE LOGFORMAT IPTABLES PATH SHOREWALL_SHELL SUBSYSLOCK RESTOREFILE TC_ENABLED; do
|
||||
for option in VERBOSITY LOGFILE LOGFORMAT IPTABLES PATH SHOREWALL_SHELL SUBSYSLOCK RESTOREFILE; do
|
||||
conditionally_add_option $option
|
||||
done
|
||||
|
||||
conditionally_add_option1 TC_ENABLED
|
||||
|
||||
exec 3>&-
|
||||
fi
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user