From 940d7206a9042f85585f92b2eb3be60c040ebd90 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Fri, 18 Jun 2010 00:27:15 +0200 Subject: [PATCH] network: ipv4-static: Set gateway only on nonlocal connections. --- hooks/bridge.configs/ipv4-static | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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} -- 2.47.3