Merge pull request #88 from shoop/staticroutegw

The default gateway might need a static route
master
Harald Hoyer 2015-08-24 11:53:01 +02:00
commit e0a5dec4a4
1 changed files with 7 additions and 0 deletions

View File

@ -129,6 +129,13 @@ setup_net() {
fi
done

# If a static route was necessary to reach the gateway, the
# first gateway setup call will have failed with
# RTNETLINK answers: Network is unreachable
# Replace the default route again after static routes to cover
# this scenario.
[ -e /tmp/net.$netif.gw ] && . /tmp/net.$netif.gw

# Handle STP Timeout: arping the default gateway.
# (or the root server, if a) it's local or b) there's no gateway.)
# Note: This assumes that if no router is present the