]> git.ipfire.org Git - people/arne_f/network.git/commitdiff
network: ipv4-static: Set gateway only on nonlocal connections.
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 17 Jun 2010 22:27:15 +0000 (00:27 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 17 Jun 2010 22:27:15 +0000 (00:27 +0200)
hooks/bridge.configs/ipv4-static

index 733a43f1bccd999c993e48cff9a32b864aa7f270..3071ef3bac4b938a98abc996f9856d1479d8a121 100755 (executable)
@@ -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}