netstart revision 66830
125895Sjkh#!/bin/sh -
225895Sjkh#
366830Sobrien# Copyright (c) 1993  The FreeBSD Project
466830Sobrien# All rights reserved.
566830Sobrien#
666830Sobrien# Redistribution and use in source and binary forms, with or without
766830Sobrien# modification, are permitted provided that the following conditions
866830Sobrien# are met:
966830Sobrien# 1. Redistributions of source code must retain the above copyright
1066830Sobrien#    notice, this list of conditions and the following disclaimer.
1166830Sobrien# 2. Redistributions in binary form must reproduce the above copyright
1266830Sobrien#    notice, this list of conditions and the following disclaimer in the
1366830Sobrien#    documentation and/or other materials provided with the distribution.
1466830Sobrien#
1566830Sobrien# THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
1666830Sobrien# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
1766830Sobrien# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
1866830Sobrien# ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
1966830Sobrien# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
2066830Sobrien# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
2166830Sobrien# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
2266830Sobrien# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
2366830Sobrien# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
2466830Sobrien# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
2566830Sobrien# SUCH DAMAGE.
2666830Sobrien#
2750472Speter# $FreeBSD: head/etc/netstart 66830 2000-10-08 19:20:36Z obrien $
2825895Sjkh#	From: @(#)netstart	5.9 (Berkeley) 3/30/91
2966830Sobrien#
3025895Sjkh
3125896Sjkh# This file is NOT called by any of the other scripts - it has been
3225896Sjkh# obsoleted by /etc/rc.network and is provided here only for user
3325896Sjkh# convenience (if you're sitting in single user mode and wish to start
3425896Sjkh# the network by hand, this script will do it for you).
3525896Sjkh#
3625896Sjkh
3725895Sjkh# If there is a global system configuration file, suck it in.
3843849Sjkhif [ -f /etc/defaults/rc.conf ]; then
3943849Sjkh	. /etc/defaults/rc.conf
4059674Ssheldonh	source_rc_confs
4143849Sjkhelif [ -f /etc/rc.conf ]; then
4225895Sjkh	. /etc/rc.conf
4325895Sjkhfi
4425895Sjkh
4525895Sjkhif [ -f /etc/rc.network ]; then
4625895Sjkh	. /etc/rc.network
4725895Sjkhelse
4825895Sjkh	echo "Sorry, I can't find /etc/rc.network - aborting."
4925895Sjkh	exit 1
5025895Sjkhfi
5125895Sjkh
5225895Sjkhecho 'Doing stage one network startup:'
5325895Sjkhnetwork_pass1
5425895Sjkhexit 0
55