netif (212574) | netif (212579) |
---|---|
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 212574 2010-09-13 19:51:15Z hrs $ | 25# $FreeBSD: head/etc/rc.d/netif 212579 2010-09-13 19:55:40Z 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" 37start_cmd="network_start" 38stop_cmd="network_stop" 39cloneup_cmd="clone_up" 40clonedown_cmd="clone_down" 41extra_commands="cloneup clonedown" 42cmdifn= 43 | 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_cmd="network_start" 38stop_cmd="network_stop" 39cloneup_cmd="clone_up" 40clonedown_cmd="clone_down" 41extra_commands="cloneup clonedown" 42cmdifn= 43 |
44set_rcvar_obsolete ipv6_enable ipv6_prefer | 44set_rcvar_obsolete ipv6_enable ipv6_activate_all_interfaces 45set_rcvar_obsolete ipv6_prefer |
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 --- | 46 47network_start() 48{ 49 # Set the list of interfaces to work on. 50 # 51 cmdifn=$* 52 53 if [ -z "$cmdifn" ]; then --- 105 unchanged lines hidden --- |