diff options
author | Hartmut Brandt <harti@FreeBSD.org> | 2003-08-14 15:27:32 +0000 |
---|---|---|
committer | Hartmut Brandt <harti@FreeBSD.org> | 2003-08-14 15:27:32 +0000 |
commit | 8b296e19bdb8e51b63e1990a45074ca4ce192563 (patch) | |
tree | 868e3e3631dce33ea2f8acc0c63c7f3480c1fdef /etc/rc.d/routing | |
parent | 946e86b7e161c1bafc83b1474eded95c4844a7d8 (diff) | |
download | src-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/routing | 8 |
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() |