netstart revision 59674
11638Srgrimes#!/bin/sh -
21638Srgrimes#
31638Srgrimes# $FreeBSD: head/etc/netstart 59674 2000-04-27 08:43:49Z sheldonh $
41638Srgrimes#	From: @(#)netstart	5.9 (Berkeley) 3/30/91
51638Srgrimes
61638Srgrimes# This file is NOT called by any of the other scripts - it has been
71638Srgrimes# obsoleted by /etc/rc.network and is provided here only for user
81638Srgrimes# convenience (if you're sitting in single user mode and wish to start
91638Srgrimes# the network by hand, this script will do it for you).
101638Srgrimes#
111638Srgrimes
121638Srgrimes# If there is a global system configuration file, suck it in.
131638Srgrimesif [ -f /etc/defaults/rc.conf ]; then
141638Srgrimes	. /etc/defaults/rc.conf
151638Srgrimes	source_rc_confs
161638Srgrimeselif [ -f /etc/rc.conf ]; then
171638Srgrimes	. /etc/rc.conf
181638Srgrimesfi
191638Srgrimes
201638Srgrimesif [ -f /etc/rc.network ]; then
211638Srgrimes	. /etc/rc.network
221638Srgrimeselse
231638Srgrimes	echo "Sorry, I can't find /etc/rc.network - aborting."
241638Srgrimes	exit 1
251638Srgrimesfi
261638Srgrimes
271638Srgrimesecho 'Doing stage one network startup:'
281638Srgrimesnetwork_pass1
291638Srgrimesexit 0
301638Srgrimes