First set of changes to allow compilation on a different system -- take 2

git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@3267 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
teastep 2006-01-12 18:30:03 +00:00
parent 51d9e2aeec
commit be7a4271dd

View File

@ -1405,7 +1405,7 @@ __EOF__
cat >> $RESTOREBASE << __EOF__
gateway=\$(detect_gateway $interface)
if [ -z \"\$gateway\" ]; then
if [ -n \"\$gateway\" ]; then
ip route replace \$gateway src \$(find_first_interface_address $interface) dev $interface table $number
ip route add default via \$gateway dev $interface table $number
else