]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - etc/netstart
This commit was generated by cvs2svn to compensate for changes in r52744,
[FreeBSD/FreeBSD.git] / etc / netstart
1 #!/bin/sh -
2 #
3 # $FreeBSD$
4 #       From: @(#)netstart      5.9 (Berkeley) 3/30/91
5
6 # This file is NOT called by any of the other scripts - it has been
7 # obsoleted by /etc/rc.network and is provided here only for user
8 # convenience (if you're sitting in single user mode and wish to start
9 # the network by hand, this script will do it for you).
10 #
11
12 # If there is a global system configuration file, suck it in.
13 if [ -f /etc/defaults/rc.conf ]; then
14         . /etc/defaults/rc.conf
15 elif [ -f /etc/rc.conf ]; then
16         . /etc/rc.conf
17 fi
18
19 if [ -f /etc/rc.network ]; then
20         . /etc/rc.network
21 else
22         echo "Sorry, I can't find /etc/rc.network - aborting."
23         exit 1
24 fi
25
26 echo 'Doing stage one network startup:'
27 network_pass1
28 exit 0