netif (230453) | netif (230726) |
---|---|
1#!/bin/sh 2# 3# Copyright (c) 2003 The FreeBSD Project. All rights reserved. 4# 5# Redistribution and use in source and binary forms, with or without 6# modification, are permitted provided that the following conditions 7# are met: 8# 1. Redistributions of source code must retain the above copyright --- 8 unchanged lines hidden (view full) --- 17# IN NO EVENT SHALL THE PROJECT BE LIABLE FOR ANY DIRECT, INDIRECT, 18# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 19# NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 20# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 21# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 22# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 23# THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 24# | 1#!/bin/sh 2# 3# Copyright (c) 2003 The FreeBSD Project. All rights reserved. 4# 5# Redistribution and use in source and binary forms, with or without 6# modification, are permitted provided that the following conditions 7# are met: 8# 1. Redistributions of source code must retain the above copyright --- 8 unchanged lines hidden (view full) --- 17# IN NO EVENT SHALL THE PROJECT BE LIABLE FOR ANY DIRECT, INDIRECT, 18# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 19# NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 20# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 21# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 22# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 23# THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 24# |
25# $FreeBSD: head/etc/rc.d/netif 230453 2012-01-22 10:57:32Z hrs $ | 25# $FreeBSD: head/etc/rc.d/netif 230726 2012-01-29 08:33:34Z hrs $ |
26# 27 28# PROVIDE: netif 29# REQUIRE: atm1 cleanvar FILESYSTEMS serial sppp sysctl 30# REQUIRE: ipfilter ipfs 31# KEYWORD: nojail 32 33. /etc/rc.subr --- 99 unchanged lines hidden (view full) --- 133 _dadwait=1 134 fi 135 else 136 _fail="${_fail} ${ifn}" 137 fi 138 done 139 140 # inet6 address configuration needs sleep for DAD. | 26# 27 28# PROVIDE: netif 29# REQUIRE: atm1 cleanvar FILESYSTEMS serial sppp sysctl 30# REQUIRE: ipfilter ipfs 31# KEYWORD: nojail 32 33. /etc/rc.subr --- 99 unchanged lines hidden (view full) --- 133 _dadwait=1 134 fi 135 else 136 _fail="${_fail} ${ifn}" 137 fi 138 done 139 140 # inet6 address configuration needs sleep for DAD. |
141 if [ -n "${_dadwait}" ]; then | 141 case ${_func}:${_dadwait} in 142 ifn_start:1) |
142 sleep `${SYSCTL_N} net.inet6.ip6.dad_count` 143 sleep 1 | 143 sleep `${SYSCTL_N} net.inet6.ip6.dad_count` 144 sleep 1 |
144 fi | 145 ;; 146 esac |
145 146 _str= 147 if [ -n "${_ok}" ]; then 148 case ${_func} in 149 ifn_start) 150 _str='Starting' 151 ;; 152 ifn_stop) --- 16 unchanged lines hidden --- | 147 148 _str= 149 if [ -n "${_ok}" ]; then 150 case ${_func} in 151 ifn_start) 152 _str='Starting' 153 ;; 154 ifn_stop) --- 16 unchanged lines hidden --- |