aboutsummaryrefslogtreecommitdiff
path: root/etc/rc.d/routing
diff options
context:
space:
mode:
authorBrian Somers <brian@FreeBSD.org>2001-06-03 12:26:56 +0000
committerBrian Somers <brian@FreeBSD.org>2001-06-03 12:26:56 +0000
commitc34b6be0cd3d5bb633e030e1ddfcfc828d26091f (patch)
tree5f0f414e46173a358855262865ebad6253edee5c /etc/rc.d/routing
parenteee598d8f3c85efc340cd7c69fbbaec64ed9b2d0 (diff)
downloadsrc-c34b6be0cd3d5bb633e030e1ddfcfc828d26091f.tar.gz
src-c34b6be0cd3d5bb633e030e1ddfcfc828d26091f.zip
Move gif_interfaces from an IP6 option to a regular IP option.
PR: 26543 Submitted by: Brooks Davis <brooks@one-eyed-alien.net> MFC after: 3 weeks
Notes
Notes: svn path=/head/; revision=77651
Diffstat (limited to 'etc/rc.d/routing')
-rw-r--r--etc/rc.d/routing23
1 files changed, 23 insertions, 0 deletions
diff --git a/etc/rc.d/routing b/etc/rc.d/routing
index fbe8bf3692e9..c4dcb81c04f2 100644
--- a/etc/rc.d/routing
+++ b/etc/rc.d/routing
@@ -129,6 +129,9 @@ network_pass1() {
fi
done
+ # gifconfig
+ network_gif_setup
+
# Set up all the network interfaces, calling startup scripts if needed
#
case ${network_interfaces} in
@@ -751,6 +754,26 @@ network_pass4() {
network_pass4_done=YES
}
+network_gif_setup() {
+ case ${gif_interfaces} in
+ [Nn][Oo] | '')
+ ;;
+ *)
+ for i in ${gif_interfaces}; do
+ eval peers=\$gifconfig_$i
+ case ${peers} in
+ '')
+ continue
+ ;;
+ *)
+ gifconfig $i ${peers}
+ ;;
+ esac
+ done
+ ;;
+ esac
+}
+
convert_host_conf() {
host_conf=$1; shift;
nsswitch_conf=$1; shift;