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 197526 2009-09-26 18:59:00Z 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
--- 104 unchanged lines hidden (view full) ---
138 ifn_start)
139 _str='Starting'
140 ;;
141 ifn_stop)
142 _str='Stopping'
143 ;;
144 esac
145 echo "${_str} Network:${_ok}."
146 if [ -z "${rc_quiet}" ]; then
147 for ifn in ${_ok}; do
148 /sbin/ifconfig ${ifn}
149 done
150 fi
151 fi
152
153 debug "The following interfaces were not configured: $_fail"
154}
155
156load_rc_config $name
157run_rc_command $*
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 197526 2009-09-26 18:59:00Z 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
--- 104 unchanged lines hidden (view full) ---
138 ifn_start)
139 _str='Starting'
140 ;;
141 ifn_stop)
142 _str='Stopping'
143 ;;
144 esac
145 echo "${_str} Network:${_ok}."
146 if [ -z "${rc_quiet}" ]; then
147 for ifn in ${_ok}; do
148 /sbin/ifconfig ${ifn}
149 done
150 fi
151 fi
152
153 debug "The following interfaces were not configured: $_fail"
154}
155
156load_rc_config $name
157run_rc_command $*