1997-05-18 15:10:06 +01:00
|
|
|
#!/bin/sh -
|
|
|
|
#
|
1999-08-28 00:37:10 +01:00
|
|
|
# $FreeBSD$
|
1997-05-18 15:10:06 +01:00
|
|
|
# From: @(#)netstart 5.9 (Berkeley) 3/30/91
|
|
|
|
|
1997-05-18 21:11:44 +01:00
|
|
|
# This file is NOT called by any of the other scripts - it has been
|
|
|
|
# obsoleted by /etc/rc.network and is provided here only for user
|
|
|
|
# convenience (if you're sitting in single user mode and wish to start
|
|
|
|
# the network by hand, this script will do it for you).
|
|
|
|
#
|
|
|
|
|
1997-05-18 15:10:06 +01:00
|
|
|
# If there is a global system configuration file, suck it in.
|
1999-02-10 18:08:16 +00:00
|
|
|
if [ -f /etc/defaults/rc.conf ]; then
|
|
|
|
. /etc/defaults/rc.conf
|
2000-04-27 09:43:49 +01:00
|
|
|
source_rc_confs
|
1999-02-10 18:08:16 +00:00
|
|
|
elif [ -f /etc/rc.conf ]; then
|
1997-05-18 15:10:06 +01:00
|
|
|
. /etc/rc.conf
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ -f /etc/rc.network ]; then
|
|
|
|
. /etc/rc.network
|
|
|
|
else
|
|
|
|
echo "Sorry, I can't find /etc/rc.network - aborting."
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
echo 'Doing stage one network startup:'
|
|
|
|
network_pass1
|
|
|
|
exit 0
|