Commit Graph

63 Commits

Author SHA1 Message Date
des
e17c9a0bf7 There is no network2 any more.
Pointy hat to:	mtm
2003-10-13 10:36:26 +00:00
imp
6df3f156bf We need pccard start too. 2003-04-29 15:32:02 +00:00
jwd
28e298a192 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
ed0f313004 Run network6_pass1 if ipv6_enable is YES 2001-05-18 09:14:39 +00:00
dougb
f098081774 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
dougb
1e8ecc617b 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
des
1b1ea4d619 Run rc.pccard from netstart so it works for us laptop users as well. 2000-12-16 02:48:14 +00:00
obrien
6700db6a71 Add copyright notices. Other systems have been barrowing our /etc files
w/o giving any credit.
2000-10-08 19:20:36 +00:00
sheldonh
e9b1278038 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
289c0d262f $Id$ -> $FreeBSD$ 1999-08-27 23:37:10 +00:00
jkh
e57466a1c3 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
pst
bae151f4e5 netstart should really only do phase 1 bringup, not start all the daemons 1997-07-05 19:35:45 +00:00
jkh
02bc7ae6ab Comment that this is no longer used and is only for convenience.
Requested by:	ache
1997-05-18 20:11:44 +00:00
jkh
8195d51ed0 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
jkh
7be3f36014 Bring in rc file changes from -current. 1997-04-27 03:59:19 +00:00
peter
f173325ac8 Revert $FreeBSD$ to $Id$ 1997-02-23 09:21:14 +00:00
jkh
808a36ef65 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
jhay
191022536e Add knobs for IPX.
2.2 candidate?
1996-11-05 20:10:37 +00:00
peter
445161a900 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
mpp
be25c38e8e Use the correct syntax for checking if /etc/rc.firewall exists. 1996-04-06 09:24:48 +00:00
phk
abe01fc216 Add skeleton firewall setup(s). Comments very welcome. 1996-04-03 17:13:59 +00:00
jkh
e4001e9370 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
jkh
a4c758d85c 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
mpp
3aff305a53 Another round of spelling fixes. 1996-01-31 15:03:18 +00:00
jkh
0a6be72938 echo setting of ${router} properly, e.g. between double quotes. :) 1996-01-08 04:50:18 +00:00
jkh
a8e9d6a2ea 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
pst
4aba64e2ff Using csh constructs in shell scripts is a boo-boo. 1996-01-02 19:47:05 +00:00
jkh
27bb84eb65 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
dg
709901aa3d Add missing quote.
Submitted by:	Morgan Davis <root@io.cts.com>
1995-08-25 07:18:04 +00:00
jkh
9f26959919 Add a "gateway" flag so that user can set up a gateway machine automatically
from sysinstall.
1995-08-23 07:12:16 +00:00
asami
0aa964fdce Change "sysctl -nw" to "sysctl -w" to make the output more informative.
Reviewed by:	rgrimes
1995-06-25 09:35:56 +00:00
rgrimes
037b95c21c 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
jkh
d86322bd5b 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
rgrimes
e3b120088f 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
rgrimes
7297445841 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
ache
baa7d4604a 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
rgrimes
89c931f847 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
rgrimes
22293c7df5 This is a purely cosmetic clean up. Fix many cut and paste problems that
had turned tabs into spaces.
1995-04-09 09:54:51 +00:00
rgrimes
01cb869dd8 This is the rc work as provided by pts, I will me makeing some additional
changes to it based upon other outstanding bug reports and commits made
after his work.

Comments:

(a) sysconfig is still used to do all configuration.  I was not going to
    change that out from under you.... a user never need edit netstart
    or rc* unless they're being very weird.

(b) rc.maint has been folded back into rc.  It is just unworkable as
    a separate chunk because of ordering bogosities

(c) netstart does what it says... it starts up enough of the network to
    get up,  it doesn't start every bloody daemon that might talk to a
    socket...  netstart ifconfig's the devices and sets up routing if
    configured to do so.

(d) nfs disks are mounted immediately after netstart completes

(e) syslog is started as early as possible (right after nfs) so that error
    messages can get logged to remote syslog servers properly

(f) named is started (there is an argument that says that named should be
    started before syslogd because if you are the dns server for your domain,
    you'd like named to resolve remote hosts in syslog.conf,  but this is
    a minority case and the trivial workarround is to put the syslog host
    in /etc/hosts or use an /etc/resolv.conf -- why? because you want syslog
    to catch named errors, which is a MUCH more important and likely occurance)

(g) NOW all of the rest of the network daemons such as the time stuff, RPC,
    NIS, NFS, Kerberos and inetd are started

(h) the rest of the generic stuff is done (cron/printer/sendmail)

(i) shared libraries are set

(j) /etc/rc.i386 is run (this does FreeBSD/386 specific stuff like ibcs2,
    xtend, and all of the syscons stuff
    (this is actually started as /etc/rc.`uname -m`

(k) the syscons stuff has gotten a serious cleaning to make it consistent
    with rc conventions

(l) rc.local has had the comments about syscons removed (they are not relevant
    to this file now) and the full name of the kernel has been restored to
    /etc/motd

Submitted by:	pts
1995-03-30 06:26:19 +00:00
rgrimes
d4daa40a7f History merge after repository restore of netstart,v:
date: 1995/03/26 18:18:59;  author: wpaul;  state: Exp;  lines: +23 -17
Make syslogd work again: in needs to be started in netstart right
before the rest of the system daemons are brought up and *after* the
network interfaces have been configured.

Also fix one other potential problem: the NIS services need to be started
relavively early since some of the other daemons might need them. The
automounter is a good example: if you use amd with NIS-based maps, you'd
better have NIS running before you start it. :) I think mountd might
need it too, now that netgroups can be read via NIS as well.
1995-03-29 03:33:55 +00:00
rgrimes
798e0d1de1 History merge after repository restore of netstart,v:
date: 1995/03/23 01:25:18;  author: jkh;  state: Exp;
Another pass through our rc files in an attempt to eliminate historical
crufy and generally make all of this easier to understand and modify.
1995-03-29 03:28:08 +00:00
jkh
2fe73346e8 Begin a long-overdue cleanup of this whole mess.
1. Move all system configuration variables into /etc/sysconfig
2. Adapt other files to use it.
3. Add a host of new variables for micro-managing your system in various
   ways.  For 2.1, /etc/sysconfig will be machine-edited so that the user
   doesn't even have to care at all about the various funny names we picked.
4. Enable dset.  We won't get it debugged if we never use it, and no one
   has said anything negative about it yet, so here goes!
5. Try to use one consistent style throughout.
1995-03-21 15:20:48 +00:00
wollman
80a34ebfdf Semi-major RC file cleanup:
- Do ntp right
- Move recenrly-added and long-standing junk from rc.local into rc, so
. that rc.local truly is LOCAL.
- Fix named invocation to use the correct boot file location.
1995-03-16 16:58:01 +00:00
wpaul
e44dd23d15 Small NIS fixes:
1) ypserv is started with nis_serverflags, not yppasswddflags (that's what
   I get for cutting & pasting without paying attention).

2) ypbind can also be started with arguments, so turn nis_client to
   nis_clientflags.
1995-02-08 16:42:12 +00:00
ats
6863615c3f Submitted by: Michael Reiffenberger ?
Changed the yppaswddd to a yppaswdd :-).
1995-02-07 20:52:35 +00:00
wpaul
f134773353 Added options for starting NIS client and server processes. All are
off by default.
1995-02-03 23:54:07 +00:00
phk
7b78e3a232 Only so savecore if people ask for it. 1994-11-07 04:02:26 +00:00
phk
39af2a53f0 Don't set hostname if we already have it. (diskless). 1994-11-02 23:50:54 +00:00
pst
f26366acd4 Make multicasts go out default interface 1994-10-06 20:52:00 +00:00
pst
a6993e000c Add nfs_client and amdflags 1994-09-29 17:27:46 +00:00