diff options
author | harti <harti@FreeBSD.org> | 2003-08-14 15:27:32 +0000 |
---|---|---|
committer | harti <harti@FreeBSD.org> | 2003-08-14 15:27:32 +0000 |
commit | 14903b1421503555424c8812e40b53c4e13bb129 (patch) | |
tree | 868e3e3631dce33ea2f8acc0c63c7f3480c1fdef /etc/rc.d/routing | |
parent | 941eda46ed7265c222950da5f31fad99560efa06 (diff) | |
download | FreeBSD-src-14903b1421503555424c8812e40b53c4e13bb129.zip FreeBSD-src-14903b1421503555424c8812e40b53c4e13bb129.tar.gz |
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
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 2c91bf0..d083a26 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() |