Allow 'main' in the PROVIDER column in route_rules

git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@3877 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
teastep 2006-05-06 17:01:04 +00:00
parent 04e8c78605
commit 00bbc4c4ab

View File

@ -1298,7 +1298,7 @@ __EOF__
{
local p n
for p in $PROVIDERS; do
for p in $PROVIDERS main; do
[ "$p" = "$1" ] && return 0
eval n=\$${p}_number}
[ "$n" = "$1" ] && return 0
@ -1397,6 +1397,8 @@ __EOF__
if [ -f $f ]; then
strip_file route_rules $f
main_number=254
if [ -s $TMP_DIR/route_rules ]; then
progress_message2 "$DOING $f..."