netif (180563) | netif (184485) |
---|---|
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 180563 2008-07-16 19:22:48Z dougb $ | 25# $FreeBSD: head/etc/rc.d/netif 184485 2008-10-30 20:24:25Z pjd $ |
26# 27 28# PROVIDE: netif 29# REQUIRE: atm1 cleanvar ipfilter FILESYSTEMS serial sppp sysctl 30# KEYWORD: nojail 31 32. /etc/rc.subr 33. /etc/network.subr --- 102 unchanged lines hidden (view full) --- 136 _str='Starting' 137 ;; 138 ifn_stop) 139 _str='Stopping' 140 ;; 141 esac 142 echo "${_str} Network:${_ok}." 143 if [ -z "${rc_quiet}" ]; then | 26# 27 28# PROVIDE: netif 29# REQUIRE: atm1 cleanvar ipfilter FILESYSTEMS serial sppp sysctl 30# KEYWORD: nojail 31 32. /etc/rc.subr 33. /etc/network.subr --- 102 unchanged lines hidden (view full) --- 136 _str='Starting' 137 ;; 138 ifn_stop) 139 _str='Stopping' 140 ;; 141 esac 142 echo "${_str} Network:${_ok}." 143 if [ -z "${rc_quiet}" ]; then |
144 /sbin/ifconfig ${_ok} | 144 for ifn in ${_ok}; do 145 /sbin/ifconfig ${ifn} 146 done |
145 fi 146 fi 147 148 debug "The following interfaces were not configured: $_fail" 149} 150 151load_rc_config $name 152run_rc_command $* | 147 fi 148 fi 149 150 debug "The following interfaces were not configured: $_fail" 151} 152 153load_rc_config $name 154run_rc_command $* |