aboutsummaryrefslogtreecommitdiff
path: root/etc/rc.d/routing
diff options
context:
space:
mode:
authorHartmut Brandt <harti@FreeBSD.org>2003-08-14 15:27:32 +0000
committerHartmut Brandt <harti@FreeBSD.org>2003-08-14 15:27:32 +0000
commit8b296e19bdb8e51b63e1990a45074ca4ce192563 (patch)
tree868e3e3631dce33ea2f8acc0c63c7f3480c1fdef /etc/rc.d/routing
parent946e86b7e161c1bafc83b1474eded95c4844a7d8 (diff)
downloadsrc-8b296e19bdb8e51b63e1990a45074ca4ce192563.tar.gz
src-8b296e19bdb8e51b63e1990a45074ca4ce192563.zip
Now that routes for IP over ATM may look much more complex than before,
use the atmconfig(8) utility instead of route(8) to install those routes. For this we need a new rc.conf variable natm_static_routes that works just like static_routes except that the referenced routes use the syntax of atmconfig(8). Okay'ed by: mtm
Notes
Notes: svn path=/head/; revision=118908
Diffstat (limited to 'etc/rc.d/routing')
-rw-r--r--etc/rc.d/routing8
1 files changed, 8 insertions, 0 deletions
diff --git a/etc/rc.d/routing b/etc/rc.d/routing
index 2c91bf06844e..d083a261b51d 100644
--- a/etc/rc.d/routing
+++ b/etc/rc.d/routing
@@ -48,6 +48,14 @@ static_start()
route add ${route_args}
done
fi
+ # Now ATM static routes
+ #
+ if [ -n "${natm_static_routes}" ]; then
+ for i in ${natm_static_routes}; do
+ eval route_args=\$route_${i}
+ atmconfig natm add ${route_args}
+ done
+ fi
}
options_start()