Make shell variables work in the zones file

git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@2225 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
teastep 2005-06-04 21:04:48 +00:00
parent 923ff3ae0f
commit aef84305b4

View File

@ -268,6 +268,7 @@ reload_kernel_modules() {
find_zones() # $1 = name of the zone file find_zones() # $1 = name of the zone file
{ {
while read zone display comments; do while read zone display comments; do
expandv zone display
[ -n "$zone" ] && case "$zone" in [ -n "$zone" ] && case "$zone" in
[0-9*]) [0-9*])
echo " Warning: Illegal zone name \"$zone\" in zones file ignored" 2>&2 echo " Warning: Illegal zone name \"$zone\" in zones file ignored" 2>&2