summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorharti <harti@FreeBSD.org>2003-08-14 15:27:32 +0000
committerharti <harti@FreeBSD.org>2003-08-14 15:27:32 +0000
commit14903b1421503555424c8812e40b53c4e13bb129 (patch)
tree868e3e3631dce33ea2f8acc0c63c7f3480c1fdef /etc
parent941eda46ed7265c222950da5f31fad99560efa06 (diff)
downloadFreeBSD-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')
-rw-r--r--etc/defaults/rc.conf1
-rw-r--r--etc/rc.d/routing8
2 files changed, 9 insertions, 0 deletions
diff --git a/etc/defaults/rc.conf b/etc/defaults/rc.conf
index 4be7226..b247b32 100644
--- a/etc/defaults/rc.conf
+++ b/etc/defaults/rc.conf
@@ -219,6 +219,7 @@ nis_yppasswdd_flags="" # Flags to rpc.yppasswdd (if enabled).
### Network routing options: ###
defaultrouter="NO" # Set to default gateway (or NO).
static_routes="" # Set to static route list (or leave empty).
+natm_static_routes="" # Set to static route list for NATM (or leave empty).
gateway_enable="NO" # Set to YES if this host will be a gateway.
router_enable="NO" # Set to YES to enable a routing daemon.
router="/sbin/routed" # Name of routing daemon to use if enabled.
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()
OpenPOWER on IntegriCloud