Deleted Added
full compact
netif (206408) netif (212574)
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 206408 2010-04-09 01:35:09Z dougb $
25# $FreeBSD: head/etc/rc.d/netif 212574 2010-09-13 19:51:15Z 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
34. /etc/network.subr
35
36name="network"
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
34. /etc/network.subr
35
36name="network"
37start_precmd="network_prestart"
38start_cmd="network_start"
39stop_cmd="network_stop"
40cloneup_cmd="clone_up"
41clonedown_cmd="clone_down"
42extra_commands="cloneup clonedown"
43cmdifn=
44
37start_cmd="network_start"
38stop_cmd="network_stop"
39cloneup_cmd="clone_up"
40clonedown_cmd="clone_down"
41extra_commands="cloneup clonedown"
42cmdifn=
43
45network_prestart()
46{
47 if [ -n "$ipv6_enable" ]; then
48 warn 'The ipv6_enable option is deprecated.'
49 warn 'See rc.conf(5) for information on disabling IPv6.'
50 fi
51}
44set_rcvar_obsolete ipv6_enable ipv6_prefer
52
53network_start()
54{
55 # Set the list of interfaces to work on.
56 #
57 cmdifn=$*
58
59 if [ -z "$cmdifn" ]; then

--- 105 unchanged lines hidden ---
45
46network_start()
47{
48 # Set the list of interfaces to work on.
49 #
50 cmdifn=$*
51
52 if [ -z "$cmdifn" ]; then

--- 105 unchanged lines hidden ---