Commit Graph

76 Commits

Author SHA1 Message Date
Dag-Erling Smørgrav
46bd754d23 Loading rc.subr and rc.conf has no effect since all we do is run other
scripts which load them again.

MFC after:	3 weeks
2015-10-26 15:14:16 +00:00
Mark Johnston
0f8bd5df8d Purge references to the mrouted rc script, which was removed in r275299.
PR:	195785
2015-02-21 06:05:51 +00:00
Dag-Erling Smørgrav
0be7f787bb Start rtsold if necessary.
Reviewed by:	hrs
MFC after:	3 days
2013-10-22 06:53:01 +00:00
Eygene Ryabinkin
edad1b5ba4 /etc/netstart: remove invocation of dhclient
dhclient is no longer a real service, it is a helper script
for /etc/rc.d/netif and devd.  Its direct invocation isn't
needed to bring the network up.

Approved by: jhb
2012-01-20 17:25:15 +00:00
Hajimu UMEMOTO
b3cae08659 /etc/rc.d/network_ipv6 was deprecated.
Reported by:	Alex Kozlov <spam__at__rm-rf.kiev.ua>
2010-08-05 15:11:03 +00:00
Hajimu UMEMOTO
478e8b2dc1 /etc/rc.d/ip6fw was deprecated.
Reported by:	Alex Kozlov <spam__at__rm-rf.kiev.ua>
MFC after:	3 days
2010-08-05 15:07:28 +00:00
Dag-Erling Smørgrav
01aedd7ecc Add hostid to the ranks.
MFC after:	2 weeks
2009-03-19 12:52:19 +00:00
Bjoern A. Zeeb
2e598474fa Remove ISDN4BSD (I4B) from HEAD as it is not MPSAFE and
parts relied on the now removed NET_NEEDS_GIANT.
Most of I4B has been disconnected from the build
since July 2007 in HEAD/RELENG_7.

This is what was removed:
- configuration in /etc/isdn
- examples
- man pages
- kernel configuration
- sys/i4b (drivers, layers, include files)
- user space tools
- i4b support from ppp
- further documentation

Discussed with: rwatson, re
2008-05-26 10:40:09 +00:00
Mike Makonnen
016cb0ba87 Use 'quietstart' so as not to get spammed with informational diagnostics. 2008-01-26 13:37:48 +00:00
Brooks Davis
26e3bd3e37 Remove reference to no longer existant /etc/rc.d/pccard.
PR:		conf/98055
Submitted by:	thierry herbelot <thierry at herbelot dot com>
2006-05-30 02:10:01 +00:00
Yaroslav Tykhiy
10b58447d5 Transforming "ppp-user" into just "ppp", step 4:
The legacy script "/etc/netstart" will start "ppp", not "ppp-user".
2005-10-29 05:08:00 +00:00
Colin Percival
c0be525bed netstart is now obsoleted by /etc/rc.d/*, not by /etc/rc.network.
Reported by:	Martin Jakob, on freebsd-stable@
MFC after:	1 month
2005-03-26 20:10:24 +00:00
Dag-Erling Smørgrav
bc816461b7 Run /etc/rc.d/routing at the appropriate time.
Spotted by:	mat
2004-02-10 19:10:34 +00:00
Dag-Erling Smørgrav
aeba777e45 There is no network2 any more.
Pointy hat to:	mtm
2003-10-13 10:36:26 +00:00
Warner Losh
52aef7c6a8 We need pccard start too. 2003-04-29 15:32:02 +00:00
John W. De Boskey
fd08d16bc2 new netstart
atm should be correct but is commented out pending appropriate testing.

Submitted by:	mtm
2003-04-29 12:26:37 +00:00
Brian Somers
b36a733b6e Run network6_pass1 if ipv6_enable is YES 2001-05-18 09:14:39 +00:00
Doug Barton
d3ee161f8b Fix a quoting problem I introduced.
Fix a tiny style problem while I'm here.

Submitted by:	knu
2000-12-26 20:55:18 +00:00
Doug Barton
e14563a3f3 Apply a more consistent style to the echo statements in /etc/ scripts.
* Put quotes around each line
* Single quotes for lines with no variable interpolation
* Double quotes if there is
* Capitalize each word that begins a line
* Make echo -n 'Doing foo:' ... echo '.' more of a standard

No functionality changes
2000-12-17 08:16:06 +00:00
Dag-Erling Smørgrav
ec0ef121a8 Run rc.pccard from netstart so it works for us laptop users as well. 2000-12-16 02:48:14 +00:00
David E. O'Brien
a1c43e3fbb Add copyright notices. Other systems have been barrowing our /etc files
w/o giving any credit.
2000-10-08 19:20:36 +00:00
Sheldon Hearn
f66e7afa28 Add to defaults/rc.conf a new function source_rc_confs which rc
scripts may use to source safely overrides in ${rc_conf_files}
files.

This protects users who insist on the bad practice of copying
/etc/defaults/rc.conf to /etc/rc.conf from a recursive loop
that exhausts available file descriptors.

Several people have expressed interest in breaking this function
out into its own shell script.  Anyone who wants to embark on
such an undertaking would do well to study the attributed PR.

PR:		17595
Reported by:	adrian
Submitted by:	Doug Barton <Doug@gorean.org>
2000-04-27 08:43:49 +00:00
Peter Wemm
9b7a44a60e $Id$ -> $FreeBSD$ 1999-08-27 23:37:10 +00:00
Jordan K. Hubbard
9c63624e6f Use /etc/defaults/rc.conf everywhere, falling back to /etc/rc.conf
as necessary (for half-assed upgrades).
1999-02-10 18:08:16 +00:00
Paul Traina
717f458664 netstart should really only do phase 1 bringup, not start all the daemons 1997-07-05 19:35:45 +00:00
Jordan K. Hubbard
e0da1f1006 Comment that this is no longer used and is only for convenience.
Requested by:	ache
1997-05-18 20:11:44 +00:00
Jordan K. Hubbard
51bd962f04 Bring back /etc/netstart for those who are sitting in single user and
wish only to bring up their interfaces.  This script is not actually called
by any other script and exists purely for user convenience.
Requested by:	pst
1997-05-18 14:10:06 +00:00
Jordan K. Hubbard
524a1478c8 Bring in rc file changes from -current. 1997-04-27 03:59:19 +00:00
Peter Wemm
79403fe300 Revert $FreeBSD$ to $Id$ 1997-02-23 09:21:14 +00:00
Jordan K. Hubbard
1130b656e5 Make the long-awaited change from $Id$ to $FreeBSD$
This will make a number of things easier in the future, as well as (finally!)
avoiding the Id-smashing problem which has plagued developers for so long.

Boy, I'm glad we're not using sup anymore.  This update would have been
insane otherwise.
1997-01-14 07:20:47 +00:00
John Hay
f4fb1da19f Add knobs for IPX.
2.2 candidate?
1996-11-05 20:10:37 +00:00
Peter Wemm
95e6becc12 Add rudimentry support for ifconfig'ing aliases at boot. Also allow
start_if.<if> to do all the work instead if so configured.  With examples.
1996-10-27 06:30:43 +00:00
Mike Pritchard
7d2174e8cb Use the correct syntax for checking if /etc/rc.firewall exists. 1996-04-06 09:24:48 +00:00
Poul-Henning Kamp
429c71776e Add skeleton firewall setup(s). Comments very welcome. 1996-04-03 17:13:59 +00:00
Jordan K. Hubbard
ed9312810e Remove my previous bogus comment about the relationship between the
static_routes and defaultrouter variables.  I'm glad I looked again, however,
as I realized that setting static_routes to NO in the case of a defaultrouter
would wind up with a bogus value for static_routes.  It doesn't really
hurt anything, but it's still wrong so I fixed it.  I think this whole routing
section of sysconfig needs a revisit - it's getting gross!
1996-02-11 04:07:27 +00:00
Jordan K. Hubbard
7d01eda88a Close conf/1007 and take this opportunity to correct a few long-standing
bogons with the way static_routes was being handled.  Also document
the fact that default_router overrides static_routes entirely.
1996-02-09 12:45:38 +00:00
Mike Pritchard
440cac3e51 Another round of spelling fixes. 1996-01-31 15:03:18 +00:00
Jordan K. Hubbard
5421d972c3 echo setting of ${router} properly, e.g. between double quotes. :) 1996-01-08 04:50:18 +00:00
Jordan K. Hubbard
cdbc1b435e New hack for configuring routers spawns two new variables:
router=<some routed>
	routerflags=<startup flags>
Submitted by:	Paul Richards et al
1996-01-06 20:49:18 +00:00
Paul Traina
f8c4a67b6a Using csh constructs in shell scripts is a boo-boo. 1996-01-02 19:47:05 +00:00
Jordan K. Hubbard
9fdf89e00d Go to new scheme for local_startup variable. Now one can specify multiple
directories to check in looking for port startup scripts.  The specific gunge
for apache httpd, gated and pcnfsd in /etc/sysconfig and /etc/netstart is
gone now.  Note that pcnfsd's troubles aren't necessarily over (and probably
why NetBSD brought it into their sources) - anyone adding pcnfsd will STILL
have to tweak /etc/sysconfig in order to set the new variable
`weak_mountd_authentication' to YES.  The flags to mountd are directly affected
by pcnfsd's requirements for non-root mounts, unfortunately! :-(
Submitted by: paul & jkh
1995-12-28 01:24:04 +00:00
David Greenman
24d7d26583 Add missing quote.
Submitted by:	Morgan Davis <root@io.cts.com>
1995-08-25 07:18:04 +00:00
Jordan K. Hubbard
5ef834d28d Add a "gateway" flag so that user can set up a gateway machine automatically
from sysinstall.
1995-08-23 07:12:16 +00:00
Satoshi Asami
2e43046bb6 Change "sysctl -nw" to "sysctl -w" to make the output more informative.
Reviewed by:	rgrimes
1995-06-25 09:35:56 +00:00
Rodney W. Grimes
978dabea51 Reviewed by: bde, jkh
Add comment that you should not have to edit netstart, and if you
do we would like to know about it.

The lo0 interface is now handled just like any other interface,
This makes it possible to do things to it from sysconfig.

Redo the comments in sysconfig about network_interfaces and ifconfig_${X}
to reflect the moving of lo0 to this scheme.  We now have an uncommented
variable for sysintall to find and play with.  (Your welcome Jordan)

Redo the way static routes are handled.  Basically use the same
scheme for routes that I did for network interfaces.  This allows
any number of static routes to be added from sysconfig.

Make sure we do the default route first so we stand a chance of
getting to our DNS server (if we have one) to resolve our own
IP address from $hostname.
1995-05-17 04:46:57 +00:00
Jordan K. Hubbard
5469943802 Document the fact that almost all the user configuration stuff is now
in /etc/sysconfig, per Luigi's suggestion.
1995-05-11 21:11:17 +00:00
Rodney W. Grimes
a51ab5ce3b Reviewed by: wollman
Add a knob to make it easy to turn off RFC 1323 and RFC 1644 options.
1995-05-11 19:08:37 +00:00
Rodney W. Grimes
28f1950b10 Add $defaultdomainname to sysconfig and use it in netstart to set the
domainname.  This eliminates /etc/defaultdomain.

Correct tickadj, it should have been tickadjflags.
1995-04-24 23:52:16 +00:00
Andrey A. Chernov
5c613ed190 Call gated as /usr/local/sbin/gated instead of possible adding
/usr/local/sbin to rc PATH
1995-04-12 16:58:06 +00:00
Rodney W. Grimes
d75038b6e7 Remove obsolete comments about my-name and my-network.
Have netstart directly source sysconfig so that it stands on its own.
Do not source netstart in rc, run it with sh.

Rework the dangerous /etc/hostname.* so that it uses a variable with
a list of interfaces and a variable for each interface in that list.
The files /etc/hostname.* become obsolete with this change, the
information is now stored in /etc/sysconfig.

Source any /etc/start_if.${ifn} files so they can export things to
netstart (plans for future enhancements in this area.)

Obsolete /etc/defaultrouter, this is now down with $defaultrouter from
sysconfig.
1995-04-11 01:22:24 +00:00