netstart revision 50472
125895Sjkh#!/bin/sh -
225895Sjkh#
350472Speter# $FreeBSD: head/etc/netstart 50472 1999-08-27 23:37:10Z peter $
425895Sjkh#	From: @(#)netstart	5.9 (Berkeley) 3/30/91
525895Sjkh
625896Sjkh# This file is NOT called by any of the other scripts - it has been
725896Sjkh# obsoleted by /etc/rc.network and is provided here only for user
825896Sjkh# convenience (if you're sitting in single user mode and wish to start
925896Sjkh# the network by hand, this script will do it for you).
1025896Sjkh#
1125896Sjkh
1225895Sjkh# If there is a global system configuration file, suck it in.
1343849Sjkhif [ -f /etc/defaults/rc.conf ]; then
1443849Sjkh	. /etc/defaults/rc.conf
1543849Sjkhelif [ -f /etc/rc.conf ]; then
1625895Sjkh	. /etc/rc.conf
1725895Sjkhfi
1825895Sjkh
1925895Sjkhif [ -f /etc/rc.network ]; then
2025895Sjkh	. /etc/rc.network
2125895Sjkhelse
2225895Sjkh	echo "Sorry, I can't find /etc/rc.network - aborting."
2325895Sjkh	exit 1
2425895Sjkhfi
2525895Sjkh
2625895Sjkhecho 'Doing stage one network startup:'
2725895Sjkhnetwork_pass1
2825895Sjkhexit 0
29