From 00bbc4c4ab48607b3a4f5418897d36c85875dfd9 Mon Sep 17 00:00:00 2001 From: teastep Date: Sat, 6 May 2006 17:01:04 +0000 Subject: [PATCH] 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 --- Shorewall/compiler | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Shorewall/compiler b/Shorewall/compiler index 86edf56e8..6c7e54111 100755 --- a/Shorewall/compiler +++ b/Shorewall/compiler @@ -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..."