From: Michael Tremer Date: Thu, 17 Jun 2010 22:27:15 +0000 (+0200) Subject: network: ipv4-static: Set gateway only on nonlocal connections. X-Git-Tag: 001~82 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=940d7206a9042f85585f92b2eb3be60c040ebd90;p=network.git network: ipv4-static: Set gateway only on nonlocal connections. --- diff --git a/hooks/bridge.configs/ipv4-static b/hooks/bridge.configs/ipv4-static index 733a43f1..3071ef3b 100755 --- a/hooks/bridge.configs/ipv4-static +++ b/hooks/bridge.configs/ipv4-static @@ -82,9 +82,8 @@ function _up() { warning "Do not set IPv4 address '${ADDRESS}/${PREFIX}' because it was already configured on zone '${zone}'." fi - warning "XXX Gateway stuff has to be done." - if [ -n "${GATEWAY}" ]; then - : # What do we do with the gateway? + if zone_is_nonlocal ${zone} && [ -n "${GATEWAY}" ]; then + : # XXX to be done fi exit ${EXIT_OK}