From fd81208991819c5d3de2fc0a79345fc30c8ebfd1 Mon Sep 17 00:00:00 2001 From: brian Date: Sun, 3 Jun 2001 12:26:56 +0000 Subject: Move gif_interfaces from an IP6 option to a regular IP option. PR: 26543 Submitted by: Brooks Davis MFC after: 3 weeks --- etc/network.subr | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) (limited to 'etc/network.subr') diff --git a/etc/network.subr b/etc/network.subr index fbe8bf3..c4dcb81 100644 --- a/etc/network.subr +++ b/etc/network.subr @@ -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; -- cgit v1.1