netstart revision 66830
1177162Sjkoshy#!/bin/sh -
2145256Sjkoshy#
3145256Sjkoshy# Copyright (c) 1993  The FreeBSD Project
4145256Sjkoshy# All rights reserved.
5145256Sjkoshy#
6145256Sjkoshy# Redistribution and use in source and binary forms, with or without
7145256Sjkoshy# modification, are permitted provided that the following conditions
8145256Sjkoshy# are met:
9145256Sjkoshy# 1. Redistributions of source code must retain the above copyright
10145256Sjkoshy#    notice, this list of conditions and the following disclaimer.
11145256Sjkoshy# 2. Redistributions in binary form must reproduce the above copyright
12231871Sbrueffer#    notice, this list of conditions and the following disclaimer in the
13231871Sbrueffer#    documentation and/or other materials provided with the distribution.
14231871Sbrueffer#
15231871Sbrueffer# THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
16231871Sbrueffer# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
17231871Sbrueffer# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
18231871Sbrueffer# ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
19231871Sbrueffer# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
20231871Sbrueffer# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
21231871Sbrueffer# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
22231871Sbrueffer# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
23145256Sjkoshy# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24145256Sjkoshy# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
25145256Sjkoshy# SUCH DAMAGE.
26183597Sjkoshy#
27206622Suqs# $FreeBSD: head/etc/netstart 66830 2000-10-08 19:20:36Z obrien $
28145256Sjkoshy#	From: @(#)netstart	5.9 (Berkeley) 3/30/91
29145256Sjkoshy#
30183107Sjkoshy
31183084Sjkoshy# This file is NOT called by any of the other scripts - it has been
32183084Sjkoshy# obsoleted by /etc/rc.network and is provided here only for user
33183084Sjkoshy# convenience (if you're sitting in single user mode and wish to start
34145256Sjkoshy# the network by hand, this script will do it for you).
35145256Sjkoshy#
36145256Sjkoshy
37145256Sjkoshy# If there is a global system configuration file, suck it in.
38145256Sjkoshyif [ -f /etc/defaults/rc.conf ]; then
39145256Sjkoshy	. /etc/defaults/rc.conf
40145256Sjkoshy	source_rc_confs
41145256Sjkoshyelif [ -f /etc/rc.conf ]; then
42147586Sru	. /etc/rc.conf
43145256Sjkoshyfi
44145256Sjkoshy
45145256Sjkoshyif [ -f /etc/rc.network ]; then
46145256Sjkoshy	. /etc/rc.network
47145256Sjkoshyelse
48183084Sjkoshy	echo "Sorry, I can't find /etc/rc.network - aborting."
49145256Sjkoshy	exit 1
50145256Sjkoshyfi
51145256Sjkoshy
52145256Sjkoshyecho 'Doing stage one network startup:'
53145256Sjkoshynetwork_pass1
54145256Sjkoshyexit 0
55145256Sjkoshy