Fix default route generation with explicit GATEWAYs in providers file -- take 4

git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@3845 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
teastep 2006-05-02 21:44:22 +00:00
parent 23d0aa0b0e
commit 416663f5f0

View File

@ -1166,10 +1166,12 @@ __EOF__
else
save_command "DEFAULT_ROUTE=\"nexthop via $gateway dev $interface weight $1\""
fi
elif [ "x$gateway" = xdetect ] ; then
save_command "DEFAULT_ROUTE=\"\$DEFAULT_ROUTE nexthop via \$gateway dev $interface weight $1\""
else
save_command "DEFAULT_ROUTE=\"\$DEFAULT_ROUTE nexthop via $gateway dev $interface weight $1\""
if [ "x$gateway" = xdetect ] ; then
save_command "DEFAULT_ROUTE=\"\$DEFAULT_ROUTE nexthop via \$gateway dev $interface weight $1\""
else
save_command "DEFAULT_ROUTE=\"\$DEFAULT_ROUTE nexthop via $gateway dev $interface weight $1\""
fi
fi
}