Commit Graph

4124 Commits

Author SHA1 Message Date
mlaier
8d5d16fc62 Add rc.d script for pf(4) (more to come once pflogd(8) works as well).
Update defaults and write some lines for rc.conf(5) also.
Mostly dup'ed from ipf

Reviewed by:	-current
Approved by:	bms(mentor)
2004-03-23 22:30:15 +00:00
des
9da4d498f6 Drop the -d argument to mtree since some of the spec files now list
symlinks.
2004-03-23 22:17:34 +00:00
des
c087c5f5f0 Add share/nls/{POSIX,en_US.US-ASCII} as symlinks to C. 2004-03-23 22:16:38 +00:00
des
7ad851fb3e Set start_cmd and stop_cmd correctly so the code that extracts the names
of the ntp servers from ntp.conf is actually used.  Remove pidfile since
ntpdate is not a daemon.
2004-03-22 16:35:35 +00:00
maxim
46693ffdb3 o Add user proxy. 2004-03-20 19:13:06 +00:00
green
962c54b39c Add a way for rc.d/devfs to set more than just the system devfs up.
Yes, this means for stuff OTHER than jails, too.  Example usage:
#devfs_system_ruleset="root"
devfs_set_rulesets="/dev=root /etc/namedb/dev=named_devfs"
2004-03-20 07:10:16 +00:00
davidc
3a57eff4a4 Echo and pass dumpdev as the device argument to savecore.
PR: bin/51655
2004-03-18 15:18:20 +00:00
jhb
8bd8ffe937 Add a mixer script that saves the current settings of all mixers present
in the system on shutdown and restores the settings on boot.  The settings
can also be reset to the saved values via 'mixer reload'.

Reviewed by:	current@
2004-03-15 23:09:17 +00:00
wes
c6cfe2ec32 Add script for creating ramdisks at boot time, in time to be processed
by fstab.
2004-03-15 18:36:21 +00:00
dougb
d1db0dfab8 1. Remove the named_rcng variable. Mike's caution in this area was a good
thing, but we're ready to move on.

2. Remove the -g default argument in named_flags. It doesn't actually do
what most users think it does, and what most users want it to do is already
accomplished with a proper default group for the bind user, which we have.
Also, the -g knob does something entirely different in BIND 9, which leads
to a lot of needless confusion/aggravation.

3. In the rc.d script, don't bogusly override $command, or $rc_flags. Both
are adequately handled in rc.conf[.local].

4. DO properly override $rc_flags if user has named_chrootdir set.
This may need to be revisited, but should be ok for now.

5. Protect all chrootdir-related bits under that variable, instead of
named_rcng.

There is more work to be done here, especially in the area of BIND 9
compatibility, but this is a start at least.

Prompted in part by (legitmate) grousing from: kuriyama, Randy Bush
2004-03-14 19:10:06 +00:00
ru
ba2b4921b1 I believe most of /boot/device.hints out there are based (if not
identical) on GENERIC.hints, hence the following change:

Moved the creation of /boot/device.hints where it belongs.  This
should aid in merging GENERIC.hints changes to /boot/device.hints,
using mergemaster(8) or a similar approach.
2004-03-14 17:18:39 +00:00
cperciva
0c435358e5 Fix odd grammar in comment.
PR:		docs/64190
Submitted by:	Dan Langille
2004-03-13 05:16:42 +00:00
brooks
1c3eec6b9d If /conf/diskless_remount exists, use it to remount the entire /conf
directory.  This allows multiple roots (say for different architectures)
to share the same set of /conf files.
2004-03-12 04:40:16 +00:00
des
652cce53f4 Turn on logging for tftpd. 2004-03-11 22:15:28 +00:00
kientzle
e9f52c0cae Don't run fsck if there's no /etc/fstab.
In particular, this allows a "virgin" system installed from
source (installworld, installkernel, cd etc && make distribution)
to boot correctly and modestly simplifies the creation
of single-partition network/cdrom/CF bootable images.
2004-03-11 20:00:10 +00:00
mlaier
48ea8257df ftp-proxy no longer lives in /usr/local/...
Noticed by:	Pyun YongHyeon
Approved by:	bms(mentor)
2004-03-10 15:06:17 +00:00
mlaier
545bbde2d6 Add trailing collon
Noticed by:	dwhite
Approved by:	bms(mentor)
2004-03-10 15:04:29 +00:00
phk
878347a4ac Make this file more generally usable:
Trigger not only on diskless booting sysctls being set, but also
on the existence of the file "/etc/diskless".  But do not try to
extract IP# related keywords in that case.

Add a general "remount" facility to allow non-NFS remounting.
2004-03-09 23:06:50 +00:00
ale
052c83c104 Fix typos.
Approved by:	blackend (mentor/implicitly)
2004-03-08 23:18:50 +00:00
mlaier
55ee1d7448 Link pf to the build and install:
This adds the former ports registered groups: proxy and authpf as well as
the proxy user. Make sure to run mergemaster -p in oder to complete make
installworld without errors.

This also provides the passive OS fingerprints from OpenBSD (pf.os) and an
example pf.conf.

For those who want to go without pf; it provides a NO_PF knob to make.conf.

__FreeBSD_version will be bumped soon to reflect this and to be able to
change ports accordingly.

Approved by:	bms(mentor)
2004-03-08 22:03:29 +00:00
pjd
1e1607201b Mark scripts as not usable inside a jail by adding keyword 'nojail'.
Some suggestions from:	rwatson, Ruben de Groot <mail25@bzerk.org>
2004-03-08 12:25:05 +00:00
pjd
7d94f99392 Fix skipping scripts with given keywords.
Proper syntax is '-s keyword1 -s keyword2', not '-s keyword1 keyword2'.
2004-03-08 12:02:07 +00:00
bde
3649c9102c Removed definition of NOPROG. It was just a style bug (a NetBSD macro
that became obsolete in NetBSD 22 months ago).

Submitted by:	ru
2004-03-05 16:13:22 +00:00
pjd
d5be1ea4c8 One tab too much. 2004-03-05 09:18:40 +00:00
pjd
58375a93e9 Teach 'hostname' script how to act inside a jail.
No objections from:	mtm, arch@
2004-03-05 09:17:01 +00:00
rse
dbc0ac5768 remove superfluous space before end of backtick expression 2004-03-05 08:49:59 +00:00
mtm
3e6240854c When this script included NetBSD specific logic, the NetBSD branch
included a start_precmd check for gated. The precommand was not
executed in the FreeBSD branch. When I did a mass removal of
NetBSD specific logic a while back this file apparently got only
a partial treatement. This bug did not have any functional consequences,
however, since the precommand was not declared to the rc.subr routines.

Noticed by: pjd
2004-03-05 08:03:04 +00:00
mtm
af5e53b3e2 The syslogd script should require that /var is cleaned before it runs.
Otherwise it could be in the situation where its log socket is removed
after it has started.

Noticed by: jhay
2004-03-05 07:55:04 +00:00
mtm
22ef74fbaf Remove scripts we don't use from requirement lines. These were
hold-overs from the initial NetBSD import.
2004-03-05 07:43:38 +00:00
bde
fc8309fd86 Removed include of bsd.own.mk. It was just a style bug (half-baked
chumminess with the implementation).
2004-03-05 05:48:58 +00:00
bms
981b7c54f9 Forgotten commit: Hook /etc/rc.d/ike up to the build. 2004-03-04 21:03:36 +00:00
mtm
42c705a943 Some (most?) processes don't cleanup their pid files when
they exit. Sometimes they simply can't (core-dump, for example).
So, when searching for a running program send standard error
output from ps(1) to never-never land.

	# This should quite those
	# ps: kvm_getprocs: No such user
	# errors. Since ports use a duplicate rc.subr(8) you might
	# still see this error from ports startup scripts.
2004-03-03 15:28:44 +00:00
mtm
48b8afaa12 From the PR:
Certain MTA configurations mean that the notifications from
	virecover keep bouncing; so here's a patch to allow administrators
	to turn them off.

PR:		conf/54910
Submitted by:	bms (with a minor cleanup)
2004-03-03 15:21:01 +00:00
green
4407f44973 Further shuffle runcom ordering so that netif does not start before
ipfw, but ipfw and ipfilter do start before dhclient.
2004-02-29 01:42:48 +00:00
ache
e007658325 Don't remove empty dirs if their names are in $daily_clean_tmps_ignore 2004-02-28 04:58:40 +00:00
green
0352710844 What depends on ipfilter should probably also start ipfw at the same time. 2004-02-27 22:08:19 +00:00
mtm
e0a862dae1 o Add support for detecting a jailed environment. If a script
cannot or does not want to be executed in a jail the
  KEYWORDS line should contain the nojail keyword.
o Update Copyright

# I suggest people who use jails more extensively than I do
# make commits to the appropriate files.
2004-02-27 10:44:33 +00:00
mtm
376f627d19 NetBSD rev. 1.61
Implement ``one'' prefix to allow a "one shot" operation as if
  ${rcvar}=yes yet all the other prerequisite tests are still performed.
  The existing ``force'' prefix is a sledgehammer that ignores all the
  prerequisite checks and always returns a zero exit status; this is a
  more gentle approach to the problem of "manipulate this disabled
  service without editing rc.conf(5)".

Obtained From:	NetBSD

	# We have a work-around in our version of rc.subr that
	# makes force* return a non-zero exit status if the
	# command/service could not be acted upon. The work-around
	# is no longer necessary and should be removed.
2004-02-27 09:58:50 +00:00
mtm
1514cd50cd o NetBSD rev. 1.60
Add "*,v" to the list of scratch files to skip.
  Suggested by Johnny Lam / Alistair Crooks

o Update NetBSD rcsid

Obtained From:	NetBSD
2004-02-26 12:43:43 +00:00
mtm
28e783e414 NetBSD rev. 1.57
run_rc_command(): when checking if ${command} exists before executing it,
  be sure to check under ${name_chroot} (if set).
  Fix from Ed Ravin in [bin/18523]

Obtained From:	NetBSD
2004-02-26 12:35:58 +00:00
mtm
17d206e219 NetBSD rev. 1.56
Use more concise shell syntax:
  1. for i in $* -> for i
  2. foo=$* -> foo="$@"

Obtained From:	NetBSD
2004-02-26 12:30:38 +00:00
mtm
7637de9e6e NetBSD rev. 1.53, 1.54 and 1.55:
Change how internal boolean variables are used to:
	if ! ${_somevar:-false}; then
		_somevar=true
	fi
  (Consisent, slightly quicker, and slightly cleaner)

Obtained from:	NetBSD
2004-02-26 12:19:48 +00:00
ache
d0537be31c Add "posix" subdir to "gnu" 2004-02-25 02:51:37 +00:00
brueffer
f8003287bd Fix typo 2004-02-23 22:00:44 +00:00
des
ef2b0ca1b6 the default password policy for xdm should be pam_deny, since it is
incapable of holding a meaningful conversation.
2004-02-20 21:59:51 +00:00
mtm
b1e6d83944 Don't forget to enable the ipv6 firewall once the rules are loaded.
PR:		misc/61501
Submitted by:	Roderick van Domburg <r.s.a.vandomburg@student.utwente.nl>
2004-02-19 06:53:24 +00:00
mtm
59dcbb0be8 In-line documentation.
Prodded by: alfred
2004-02-19 05:49:06 +00:00
rwatson
81dfa1276f Add com5-com8 (cuaa4-cuaa7) to /etc/remote so they are available to
tip by default.  On my systems, at least, pccard modems like to turn
up on higher addresses.
2004-02-17 05:10:12 +00:00
ache
bae88bd282 Add "gnu" to the list of subdirs 2004-02-16 22:23:34 +00:00
des
e5a3d6d7a4 Run /etc/rc.d/routing at the appropriate time.
Spotted by:	mat
2004-02-10 19:10:34 +00:00
johan
79dd434f9d Fix typo in comment, s/reebots/reboots/
PR:		62481
Submitted by:	Ulrich Spoerlein <q at uni.de>
2004-02-07 23:13:28 +00:00
imp
a8db13ad76 ttys is gone, kill it here too 2004-02-07 15:46:20 +00:00
mtm
eca65286ad Now that devfs is mandatory, there is no need to muck around
with tty/pty permissions.

Noticed by:	brooks
OKed:		phk
2004-02-07 07:10:25 +00:00
des
7cd309cd57 Require initrandom rather than random, since random requires
mountcritlocal, which requires disks, which gbde_swap provides.

Noticed by:	brooks
2004-02-05 21:40:37 +00:00
des
88477c3f32 We don't really need a lockfile, and most likely can't create one at
this point.
2004-02-04 15:53:49 +00:00
grehan
39bebd3237 PowerPC ttys file. 2004-02-04 01:44:34 +00:00
mtm
29b6073150 o Unbreak the individual jail starting patch that I broke when
I committed it. Apologies to Juergen Unger <j.unger@addict.de>.
o When stopping jails output the hostname of the jails that
  were stopped.
o Refactor
o Remove extraneous empty line
o Correct spelling error
2004-02-03 12:59:30 +00:00
des
92ccb54121 Add support for initializing swap devices with random one-shot keys. Note
that the keys are currently generated by computing the MD5 checksum of 512
bytes read from /dev/random, and are passed to gbde on the command line.

Sponsored by:	Teleplan AS
2004-02-03 11:26:08 +00:00
des
fb9d5ca1d2 Missed one in previous commit. 2004-02-03 10:22:55 +00:00
des
f21ace6524 Style fixes. 2004-02-03 10:21:35 +00:00
mtm
d8192a239a Configure a jail sysctl value only if it is different than
what the rc.conf(5) knob specifies. Also, correct a minor
capitalization error.
2004-02-03 07:15:32 +00:00
njl
18d94b8db0 Notify the user (at kern.emerg) that the system will be shutting down if
it is still above the critical temperature on the next poll cycle.  This
is a 10 second advance notice by default.  Document the private
(non-standard) notify we will be using with devd(8).
2004-02-03 04:18:56 +00:00
pjd
a55ad8e5b7 Teach /etc/rc.d/dumpon script how to stop.
Reviewed by:	gordon
Approved by:	gordon, scottl (mentor)
2004-02-02 19:05:06 +00:00
mtm
a81d292567 Ruleset numbers are not allowed in devfs_* knobs.
Noticed by someone on -current.
2004-02-02 13:27:41 +00:00
mtm
e78c9008c3 Support starting/stoping of jails individually.
This commit also removes the support for the sysutils/jailer port. This
is inline with the general policy to keep ports related knobs out
of the base system's configuration mechanism.

Submitted by: Juergen Unger <j.unger@addict.de>
2004-02-02 13:25:28 +00:00
dougb
f9eed14a32 Latest version of this file from InterNIC. This version updates the IP
address of b.root-servers.net, and various comments.
2004-01-29 16:24:30 +00:00
ache
8a918e3db6 Add kk_KZ.PT154 2004-01-29 16:17:25 +00:00
njl
a86d11b30d Remove only X[0-9]-lock. 2004-01-27 18:19:32 +00:00
ambrisko
a4f5df7a07 - Existing code would ignore pccard_ether_delay when more then 9 seconds
- If there was an exiting dhclient running on the same interface as the
  new iface that left and returned then dhclient would be told to use the
  same interface twice.  Dhclient would fail and exit after getting
  confused.  Use "sort -u" on them to ensure no duplicates.
  This is a mostly a race condition on suspend and resume and how things
  happen to occur.
- Check for netmask being set on an interface rather then up.  An interface
  can be up but not configured.

Reviewed by:	mbr
2004-01-25 19:52:16 +00:00
mux
d8ca51637d Move the test used to determine whether IPFilter is loaded or not
into its own function to avoid a small duplication of code.
2004-01-24 20:40:11 +00:00
cperciva
792b2c26e1 If we're going to "add path 'fd/*' unhide", it only makes
sense to "add path fd unhide" first.

Requested by: mtm
Approved by: rwatson (mentor)
2004-01-22 20:53:15 +00:00
ru
cdb0000782 Catch up with etc/Makefile,v 1.324 -- split "install" and "distribution"
targets, have "distribution" always install original (as from the release
media) files, whether SENDMAIL_MC is set or not.  Do error handling the
make(1) way.

Reviewed by:	gshapiro
Approved by:	gshapiro
2004-01-22 17:51:02 +00:00
mtm
c26bf60f1e Since id(1) is in /usr, it may not be available until after filesystem
mounting.

Reminded by: bde
2004-01-22 08:46:03 +00:00
ru
e92e448982 - Run makewhatis(1) in etc/Makefile at the end of "install".
- Removed redundant and undocumented NO_MAKEDB_RUN knob.
2004-01-22 08:18:37 +00:00
cperciva
b97680b685 After setting a ruleset on a new devfs mount, apply it.
Approved by: phk, rwatson (mentor)
PR: bin/61047
2004-01-21 16:36:17 +00:00
ru
d132c5d0b6 Create section 4 and 8 man subdirectories for all Tier 1 architectures. 2004-01-21 13:15:19 +00:00
ru
7455ddaefb Removed unused {man,cat}9/i386. 2004-01-21 13:09:16 +00:00
njl
c32059f532 Make sure pid file creation doesn't complain if it can't create the file.
This removes a warning message when suspending is called by a non-root
user.
2004-01-21 03:03:40 +00:00
eivind
a30a7188c2 Add /var/db/ports/ (support directory necessary for
ports that use the new OPTIONS infrastructure)
2004-01-20 13:51:23 +00:00
ru
daabf4c893 Use the standard <bsd.files.mk> API to install files. 2004-01-19 13:40:51 +00:00
mtm
5f1eea44eb Remove an extraneous semicolon (;;). 2004-01-17 11:52:37 +00:00
mtm
806db2dc45 Use the checkyesno routine instead of a case statement to
check an rc.conf(5) variable. This is in line with rc.d style.
2004-01-17 11:31:15 +00:00
mtm
6c7dde8943 Remove checks for the FreeBSD OS. 2004-01-17 11:25:16 +00:00
mtm
b039896b32 Make conform to general rc.d style. 2004-01-17 11:19:01 +00:00
mtm
3c45fe9074 o Rename the start command to conform to rc.d style.
o Move the additional commands list to the end of the
  variable initialization to conform to rc.d style
2004-01-17 11:15:04 +00:00
mtm
9479a80b1a Simplify setting of securelevel. 2004-01-17 11:11:18 +00:00
mtm
b9ba2f479b Remove variables whose sole purpose was to make easier to
work with the NetBSD specific stuff.
2004-01-17 11:06:41 +00:00
mtm
1f7a74e635 Luke Mewburn has indicated that they (NetBSD) are not interested
in keeping the scripts under rc.d in sync with us. So, remove
NetBSD specific stuff (which made our scripts more complicated
than necessary).

The NetBSD ident string will be left intact, both for history and
also incase we wish to pull in future versions.
2004-01-17 10:59:43 +00:00
mtm
05682ce07a Luke Mewburn has indicated that they (NetBSD) are not interested
in keeping the scripts under rc.d in sync with us. So, remove
NetBSD specific stuff (which made our scripts more complicated
than necessary).

The NetBSD ident string will be left intact, both for history and
also incase we wish to pull in future versions.
2004-01-17 10:40:45 +00:00
mtm
46736b3a01 Luke Mewburn has indicated that they (NetBSD) are not interested
in keeping the scripts under rc.d in sync with us. So, begin removal
of NetBSD specific stuff (which made our scripts more complicated
than necessary), starting with the NetBSD KEYWORD.
2004-01-17 10:16:38 +00:00
des
a4daec0634 Get moduli from the OpenSSH sources instead of keeping a local copy. 2004-01-07 11:55:44 +00:00
brooks
34b17229a5 Don't run newaliases if sendmail_enable=NONE.
Submitted by:	Matt Peterson <matt at peterson dot org>
Approved by:	silence on freebsd-rc
2004-01-05 19:14:47 +00:00
gshapiro
d8ce65fca7 Use hoststat/purgestat instead of sendmail -bh/-bH so the calls can
be properly mailwrapper'ed.

PR:		conf/60676
Submitted by:	Colin Percival <cperciva@daemonology.net>, maxim
MFC after:	4 days
2004-01-02 18:50:22 +00:00
njl
c177b01900 Use separate events for resume from standby and suspend in the apm(4)
case so that if devices need different initialization, we can key off
this in the rc scripts (currently unused).  Also update the man page
which is a 100% duplicate of the rc scripts.
2003-12-30 17:40:28 +00:00
njl
15bf56a4c5 Fix a usage message. 2003-12-30 17:30:39 +00:00
njl
2ed04cfc61 Add support for /etc/rc.suspend and /etc/rc.resume for ACPI. They are
called directly from acpiconf(8).  Change both scripts to take a
subsystem (apm|acpi) and sleep level (suspend,standby|1-5) argument.
2003-12-30 17:28:06 +00:00
babkin
5e0c2adee2 Added support for intelligent handling of DST transitions in cron.
reviewed by: imp
2003-12-25 23:29:19 +00:00
gshapiro
fea1045fef Enable IPv6 by default but make it optional so it doesn't affect
sites without IPv6.

Submitted by:	ume
Obtained from:	NetBSD
MFC after:	1 week
2003-12-24 21:15:09 +00:00
ache
f27f087a2d Add be_BY.*
Submitted by:   Yury Tarasievich <grog@grsu.by>
2003-12-20 11:05:34 +00:00
ache
d334d91159 Add zh_HK.Big5HKSCS 2003-12-19 06:57:57 +00:00
njl
74abfd00b6 Add power_profile, a script that changes the ACPI CPU Cx idle state and/or
the throttling state in response to line transitions.  Future plans
include adding support for CPU frequency changes.

Add a devd.conf entry for calling this script.

The default values for this are:
performance_cx_lowest="HIGH"       # Use HLT (C0) online
performance_throttle_state="HIGH"  # 100% (no throttling)
economy_cx_lowest="LOW"            # Use the lowest Cx state possible
economy_throttle_state="HIGH"      # 100% (no throttling)
2003-12-18 04:39:57 +00:00
seanc
80ef8b83ce Backout ataraid rcng script. I must have missed ar0 in my scan of /dev
after my first reboot because sure enough, I'm seeing it there now and
ata(4) is doing the right thing(TM).

Pointed out by:	des
2003-12-14 13:36:36 +00:00
seanc
71df659917 Add a script that allows software RAID sets to be created before file
systems are mounted.  An example set of entries for /etc/rc.conf:

ataraid_enable="YES"
ataraid_devices="ar0"
ataraid_ar0_set="ad2 ad3"
ataraid_ar0_type="RAID1"

Because there is no "correct" way of doing ATA raid (ie, geom vs.
atacontrol vs. vinum) that is bikeshed proof, this rcng script stays within
the bounds of atacontrol and assumes that other RAID solutions for GEOM or
vinum will end up in a different rcNG script.

Reviewed by:	green
2003-12-14 09:42:02 +00:00
jesper
e4e74b74d4 Fix typo, I forgot daily_ in front of the status_ata_raid_enable 2003-12-12 21:23:27 +00:00
peter
45727a848d Change rc.d/syscons to not need /usr/sbin/ispcvt to exist. This should
make it work for all non-i386 syscons platforms.
2003-12-10 15:48:49 +00:00
mtm
44ab913ddb o Rename devfs_link() to make_symlink() and turn it into a generic
symlinking routine.
o Modify rc.d/jail to create its own symlink relative to the jail's
  filesystem
2003-12-09 08:51:11 +00:00
mtm
bdcd7decaa If fdescfs(5) is mounted in a jail unmount it before devfs(5).
Submitted by:	"Scot W. Hetzel" <hetzelsw@westbend.net>
2003-12-09 08:32:43 +00:00
mtm
805f4ee762 If rc.d/mountcritlocal is unable to mount local filesystems,
then immediately terminate the shell (during boot this
also terminates the parent rc(8) shell). This was the pre-rcNG behaviour.

Also, remove an extraneous mount /.

PR:		conf/57659
Submitted by:	yar (with modifications)
2003-12-09 08:17:33 +00:00
mtm
cb9aa75378 Redirect rc(8) output to a file in the jail's /var/log directory.
Previously it was redirected to /dev/null.

Submitted by: phk
2003-12-09 08:09:04 +00:00
obrien
1aeb6e7be2 Move the bktr(4) <arch>/include/ioctl_{bt848,meteor}.h files to dev/bktr
as these ioctl's aren't MD.  This also means they are installed in
/usr/include/dev/bktr now.  Also provide compatability wrappers for
where these headers lived in 4.x.
2003-12-08 07:22:42 +00:00
mtm
ef4a72d52d When clearing /tmp, X11 lock and temporary files are special.
Remove them unconditionaly.

PR:		bin/59065
Approved by:	re (scottl)
2003-12-01 16:35:57 +00:00
ru
b22cc4c988 Scheduled sweep using the README guidelines.
Approved by:	re (rwatson)
2003-11-29 18:22:01 +00:00
bms
bfc9cd1b3e Add a means of starting an IKE daemon from the rc system at an appropriate
time during the boot process. This is needed in the case where NFS mounts
from servers reachable only via IPSEC are in /etc/fstab.

PR:		conf/42497
Submitted by:	Volker Stolz
Approved by:	re (rwatson)
2003-11-28 17:28:42 +00:00
scottl
1042cf32f9 Install UDF header files to unbreak /sbin building when /sys is not present.
Submitted by:	imura@ryu16.org
2003-11-22 06:08:59 +00:00
rwatson
86d5a27010 Add "socket" type to the list of default object types, and by
default attempt to list Biba, LOMAC, and MLS label information
for the socket if they are present.

Obtained from:	TrustedBSD Project
Sponsored by:	DARPA, Network Associates Laboratories
2003-11-15 02:08:01 +00:00
rwatson
b8491d6c8c Use the new "default_labels" syntax in the default mac.conf file.
Obtained from:	TrustedBSD Project
Sponsored by:	DARPA, Network Associates Laboratories
2003-11-11 03:30:29 +00:00
harti
5dbecd8881 Create sub-directories under share for bsnmp tree definition and MIB files. 2003-11-10 09:06:38 +00:00
harti
afb7dec9ee Create a subdirectory where bsnmp include files will be stuffed to. 2003-11-10 09:04:24 +00:00
rwatson
ba743b222e If available, also print the lomac label by default for processes, files,
and interfaces.  This avoids the need to manually add these when setting
up LOMAC.

Pointed out by:	tjr
2003-11-08 17:51:50 +00:00
davidxu
cb82724b94 Use space instead of tab. 2003-11-08 05:18:25 +00:00
rwatson
6aecdfef9e Add /usr/share/security to directories to create in order to hold
LOMAC context information.

Obtained from:	TrustedBSD Project
Sponsored by:	DARPA, Network Associates Laboratories
2003-11-08 00:41:41 +00:00
ru
cbc09a4afe Use %e in the date(1) format string to eliminate the sed(1) command. 2003-11-07 21:55:35 +00:00
harti
3a219fd246 Add a sub-directory for the signalling layer headers of NgATM. 2003-11-07 08:57:42 +00:00
davidxu
cfec135b1a Enable GB2312 locale. 2003-11-05 23:39:03 +00:00
mux
0e8968d518 Change a bogus -n parameter to echo(1). 2003-11-03 17:03:01 +00:00
harti
6b34d127a4 Add a sub-directory for the NgATM message encoding/decoding
header files.
2003-11-03 12:26:47 +00:00
markm
0fa9901e4e Use a better way to take NO_LPR into account, and correctly check the
NOCRYPT macro when looking at crypto.

Reminded by:	ru
2003-11-02 22:13:36 +00:00
ru
ab53aeaec5 DNS should not necessarily be named(8), tweak the comment a bit. 2003-11-02 07:31:44 +00:00
ume
e641df17fa install address selection policy into kernel when there is
/etc/ip6addrctl.conf.
following sample of ip6addrctl.conf is a good default:

#Prefix       Precedence Label
::1/128               50     0
::/0                  40     1
2002::/16             30     2
::/96                 20     3
::ffff:0:0/96         10     4
2003-10-30 17:55:52 +00:00
jesper
b785403c08 Add status checking of ATA raid to the daily periodic scripts. 2003-10-27 20:14:53 +00:00
emax
9443258745 Create missing /usr/share/examples/netgraph/bluetooth directory 2003-10-27 16:10:05 +00:00
emax
f84455cf84 Connect /etc/bluetooth and /usr/share/examples/netgraph/bluetooth to the build.
Reviewed by: imp, simon
Approved by: imp (mentor)
2003-10-26 19:09:12 +00:00
njl
bb8b57703e Add devctl(4) notify support to ACPI. Various subsystems now notify
userland whenever events occur.  See the example in devd.conf below
to see how to use it.
2003-10-25 05:03:25 +00:00
simokawa
d5b189bcd0 Add dumb console driver and related bits.
dcons(4): very simple console and gdb port driver
dcons_crom(4): FireWire attachment
dconschat(8): User interface to dcons

Tested with: i386, i386-PAE, and sparc64.
2003-10-24 15:44:10 +00:00
harti
fa66eb8b97 Add a sub-directory to netnatm for the SAAL headers. 2003-10-22 13:15:09 +00:00
imp
ec962c958d Modernize examples/usage. Kill 1200/300 baud modem entries and
instead use 14.4kbps and faster modems as examples.  Separate line
speed and baud rate and be careful when talking of one verses the
other.
2003-10-21 19:15:29 +00:00
gshapiro
779fe890c6 Before trying to restart/stop the MTA or MSP queue runner, make sure
we are configured to use an MTA or MSP queue runner.  Otherwise the
script used to complain about the missing PID file.

PR:		conf/57075
Submitted by:	Jonathan Chen <jonc@chen.org.nz>
MFC after:	2 weeks
2003-10-19 00:31:50 +00:00
gshapiro
6e7bb6fccf Adding WorkAroundBrokenAAAA seems a necessity even in the submit.mc given
the number of broken DNS servers out there in the world.  Since we are
diverging from the sendmail.org submit.mc, it's time to make our own
freebsd.submit.mc.

PR:		conf/57733
Reviewed by:	nork
MFC after:	2 weeks
2003-10-19 00:03:13 +00:00
des
3127384d17 There is no network2 any more.
Pointy hat to:	mtm
2003-10-13 10:36:26 +00:00
dougb
4820dae03d * Remove the OS specific bits, since NetBSD isn't interested in
porting this stuff back.

* Test /etc/motd for writability before trying to update it. This is
especially useful when /etc/ is mounted ro, like on a diskless boot.
(Thanks to phk for the idea on this one.)

* Make the "updating" message reflect what actually happens.
2003-10-13 08:44:07 +00:00
dougb
df31f58ce1 Remove trailing whitespace 2003-10-13 08:20:55 +00:00
dougb
08f8a6caf5 Update references to rc.diskless[12] 2003-10-13 08:18:05 +00:00
emax
b655606c42 Update Bluetooth code.
Reviewed by: M. Warner Losh <imp@bsdimp.com>; John Hay <jhay@freebsd.org>
Approved by: M. Warner Losh <imp@bsdimp.com> (mentor)
2003-10-12 22:04:24 +00:00
kris
f23a44b846 Bump default /etc size from 2MB to 5MB to deal with bloat^Wgrowth in
the size of /etc.
2003-10-12 00:19:45 +00:00
fjoe
24c4ba328a /usr/libdata/msdosfs is no longer used, because of kiconv(3) commit.
PR:		57277
Submitted by:	Ryuichiro Imura <imura@ryu16.org>
2003-10-11 11:57:03 +00:00
nectar
3dd895edf9 Install additional headers for Kerberos (libkafs, libkadm5*, and
libhdb).
2003-10-09 19:50:00 +00:00
bms
064cd2f6fb Correct definition for 1000/tcp and 1000/udp, sync with
<URL:http://www.iana.org/assignments/port-numbers>.

Submitted by:	Roman Newhauser <roman@bellavista.cz>
2003-10-08 08:48:43 +00:00
bms
dea453e1da Add port assignment for Subversion, as per
<URL:http://www.iana.org/assignments/port-numbers>.

PR:		conf/54371
Submitted by:	Roman Newhauser <roman@bellavista.cz>
MFC after:	1 week
2003-10-08 08:43:17 +00:00
imp
4c64140e50 any -> ? for new entry (to allow time for people to upgrade their pccardd) 2003-10-04 18:44:29 +00:00
phk
edcdad1d3a Default ntpd to write a "driftfile" in /var/db/ntpd.drift.
A "driftfile" caches the oscillator offset estimate from boot to boot,
having this means faster and less bumpy time synchronization.  Will
be overridden by any value in the config file.
2003-10-03 21:33:40 +00:00
phk
a4bce3434f Fix typo.
Spotted by:	"Bjoern A. Zeeb" <bzeeb@zabbadoz.net>
2003-10-03 19:57:58 +00:00
phk
e28c32f1e0 Only install .k5login if people have not set NO_KERBEROS. 2003-10-03 19:38:21 +00:00
phk
b16454b5e1 More checking if kenv actually know something.
Guard against test(1)-unfriendly outputs from kenv.
2003-10-03 19:07:31 +00:00
phk
a8030b822f In case we have no /etc/resolv.conf, don't try to make it out of
thin blue air if the kenv doesn't have any info.

This improves the truth value of the comment above significantly and
reduces the bogous output on the console considerably.
2003-10-03 18:26:33 +00:00
mux
760086f68b Fix bogon in ipfilter_resync() introduced in my last commit.
Spotted by:	Gennady Proskurin <gpr@nvnpp.vrn.ru>
2003-10-03 11:57:43 +00:00
markm
a53f9e603c Don't install etc/printcap in the NO_LPR case; ports like 'cups'
make their own etc/printcap if they need it.
2003-09-27 17:33:03 +00:00
mux
81f19b443a A number of fixes/enhancements for the ipfilter rc script:
- Use a more robust check to determine if we need to load ipl.ko.
- Don't try to run ipf -E if ipfilter is already enabled.  Look at
  the net.inet.ipf.fr_running sysctl to figure this out.  This fixes
  a warning message about ipfilter being already initialized.
- Only one ipf -E command is needed.  We don't need an extra one for
  the -6 case which would only print a warning message about ipfilter
  being already initialized.
- Fix one occurence where we were running /sbin/ipf directly without
  using the ${ipfilter_program} variable if set.
- In ipfilter_stop(), don't try to save the firewall state tables if
  ipfilter is disabled.  Similarly, don't try to disable it if it's
  already disabled.  This fixes some more error messages.
2003-09-27 13:50:47 +00:00
phk
f935367a18 As far as we know, there is no reason to not expose /dev/crypto in
jails so code in there can take advantage of hardware assisted
crypto.
2003-09-26 10:32:21 +00:00
gshapiro
41d5f8e778 Turn SENDMAIL_CF_DIR into an officially supported make.conf variable
and use it in src/etc/sendmail/Makefile in case the user wants to use
a different path to the sendmail m4 sources (e.g., sendmail port users).

Submitted by:	dinoex
MFC after:	21 days
X-MFC after:	RELENG_4 code freeze ends
2003-09-24 04:19:26 +00:00
imp
f5c1115af9 A new proxim harmony oem card spotted in the field.
Submitted by: Jeremy Bingham
2003-09-20 05:21:58 +00:00
markm
1259c058f5 Remove excess paranoia. There is no need to chech for the crypto/ dir
any more, and this check has been removed elsewhere.
2003-09-18 16:35:43 +00:00
dougb
0b6b93aa39 Add a default setting of NO for the gbde auto attach script, and
document the options.
2003-09-18 09:59:37 +00:00
dougb
a70f10cc43 Fix typo, tdp -> tcp
PR:		conf/56939
Submitted by:	Alain Kalker <miki@dds.nl>
2003-09-18 09:21:09 +00:00
obrien
6b63ecb645 Microsoft Remote Desktop Protocol uses 3389/tcp. 2003-09-16 23:17:43 +00:00
mbr
47ee1f2b25 Get rid of a nasty error message that tells us
dhclient couldn't get killed.

If we execute 'dhclient -r', dhclient gets already
killed, so there is no need to do it twice. Only do
this if we really have to release some leases.

Reviewed by:	silence on freebsd-rc@yahoogroups.com
2003-09-16 02:56:13 +00:00
mbr
ffbff2b152 Release a previous lease if there is any, instead of
just killing dhclient. Needed my some broken dhcpd
implementations to be able to get a lease again.
2003-09-15 18:27:38 +00:00
nectar
0fac9a8fc2 Add `-C 60' to the default flags for inetd, so that it is less
vulnerable to run-of-the-mill DoS attacks in the default installation.
2003-09-15 16:44:24 +00:00
jake
eb915f6350 Changed the ttyd entries to ttyu, which correspond to the device nodes
created by uart(4).
2003-09-11 00:14:17 +00:00
imp
836a2d2de9 add ELSA Vianect WLAN (Marco Wertejuk)
benq awl100 (David Leemans)

ObTerminalRoomCommit: done!
2003-09-10 01:14:07 +00:00
wpaul
8726ff9142 Add a device driver for the Broadcom BCM4401 ethernet controller,
written by Stuart Walsh and Duncan Barclay (with some kibbitzing by
me). I'm checking it in on Stuart's behalf.

The BCM4401 is built into several x86 laptop and desktop systems. For the
moment, I have only enabled it in the x86 kernel config because although
it's a PCI device, I haven't heard of any standalone NICs that use it. If
somebody knows of one, we can easily add it to the other arches.

This driver uses register/structure data gleaned from the Linux
driver released by Broadcom, but does not contain any of the code
from the Linux driver itself. It uses busdma.
2003-09-09 18:17:23 +00:00
yar
71999691a2 Update the explanation of parity capabilities
to bring it into accord with the present getty(8) code.

PR:		bin/56325
MFC after:	3 days
2003-09-09 15:37:19 +00:00
wpaul
6e83fdfd29 Fix PATH: directive in sys/modules/re/Makefile, and add the re(4) driver to
devd.conf.

Pointed out by: Larry Rosenman
2003-09-08 03:24:29 +00:00
marcel
8803f744ed Replace the ttyd[0-3] entries with ttyu[0-3]. The former are the
device special files created by sio(4). The latter are the device
special files created by uart(4). As of this moment sio(4) is not
supported on ia64... by me, that is :-)
2003-09-07 06:02:36 +00:00
gshapiro
1d4c1e93ca Build the submit.cf file instead of installing the version that ships
with the vendor sendmail distribution.  By doing so, we avoid mergemaster
warnings after every 'make' in /etc/mail/.

Reported by:	Jeremy Chadwick <koitsu@parodius.com>
MFC after:	3 days
X-MFC after:	and re approval
2003-09-01 03:40:33 +00:00
mtm
9d5c2d8941 Remove deprecated files no longer neccesary as part of rc.d. Include
a note in UPDATING about removing them from current installations.
2003-08-29 13:25:08 +00:00
mtm
692dbba592 Enhance the jail start/stop script.
o The following additional configuration attributes of a jail can be
  controlled from rc.conf:
	- mounting devfs(5)
	- mounting fdescfs(5)
	- mounting procfs(5)
	- custom devfs(8) ruleset
	  If no ruleset is specified, the default jail ruleset is used.

o The output of executing /etc/rc in the jail is now redirected
  to /dev/null. Instead, the hostname of the jail is echoed if
  the jail(8) command exited successfully. If the output is wanted
  it can probably be redirected to a file (/var/run/$jail maybe)
  instead of /dev/null.

Submitted by:	Scot W. Hetzel <hetzels@westbend.net>
		with modifications by Jens Rehsack <rehsack@liwing.de>
		and me.
2003-08-24 06:29:32 +00:00
mtm
7570796bf4 o Do not keep a separate list of src/etc/defaults files in
the src/etc makefile. This list was used to manually
  install the files from src/etc. Instead, simply change
  directory and 'make install'.
o There is no reason for the files in src/etc/defaults to
  be installed as writeable.

Reviewed by:	ru
2003-08-24 03:24:54 +00:00
imp
132ab7696d Remove workaround that I had in place. devd didn't use to be able to
handle the empty section, but it has been able to do so for some time
now.
2003-08-22 02:18:01 +00:00
mtm
c55b7f0fea o Reduce rc(8) startup clutter by turning the informational messages
off by default.
o Apparently the routine displaying the informational messages wasn't
  checking its knob in rc.conf, so fix that as well.

Requested by:	obrien
2003-08-20 06:50:34 +00:00
mtm
efaedfde92 Add a general mechanism for creating and applying
devfs(8) rules in rc(8). It is most useful for applying
rules to devfs(5) mount points in /dev or inside jails.
The following line of script is sufficient to
mount a relatively useful+secure devfs(5) in a jail:

	devfs_mount_jail /some/jail/dev

Some new shell routines available to scripts that source
rc.subr(5):
	o devfs_link		- Makes it a little easier to create symlinks
	o devfs_init_rulesets	- Create devfs(8) rulesets from devfs.rules
	o devfs_set_ruleset	- Set a ruleset to a devfs(5) mount
	o devfs_apply_ruleset	- Apply a ruleset to a devfs(5) mount
	o devfs_domount		- Mount devfs(5) and apply some ruleset
	o devfs_mount_jail	- Mount devfs(5) and apply a ruleset
				  appropriate to jails.

Additional rulesets can be specified in /etc/devfs.rules.
If the devfs_system_ruleset variable is defined in rc.conf
and it contains the name of a ruleset defined in /etc/defaults/devfs.rules
or user supplied rulesets in /etc/devfs.rules then that ruleset will
be applied to /dev at startup by the /etc/rc.d/devfs script. It can
also be applied post-startup:

	/etc/rc.d/devfs start

This is a more flexible mechanism than the previous method of using
/etc/devfs.conf. However, that method is still available.

Note: since devfs(8) doesn't provide any way for creating symlinks
as part of a ruleset, anyone wishing to create symlinks in a devfs(5)
as part of the bootup sequence will still have to rely on /etc/devfs.conf.
2003-08-20 06:15:18 +00:00
kuriyama
32e7b39603 Quote $jail_exec with double-quote to avoid "[: unexpected operator". 2003-08-19 03:49:30 +00:00
obrien
8e1b5e2f68 include <bsd.own.mk> to get BIN{OWN,GRP} 2003-08-18 15:33:08 +00:00
obrien
45ff602e39 Don't hardcode owner 'root' and group 'wheel'.
Submitted by:	Ulrich Spoerlein <q@uni.de>
2003-08-18 00:36:31 +00:00
gordon
71d884aea9 Prepend /lib to the search order for libraries. 2003-08-17 07:49:11 +00:00
gordon
13bc1e87a6 Add /lib and /libexec directories. These are part of the dynamic root
support.
2003-08-17 07:48:09 +00:00
harti
4ce5e11b13 Now that routes for IP over ATM may look much more complex than before,
use the atmconfig(8) utility instead of route(8) to install those routes.
For this we need a new rc.conf variable natm_static_routes that works
just like static_routes except that the referenced routes use the syntax
of atmconfig(8).

Okay'ed by:	mtm
2003-08-14 15:27:32 +00:00
mbr
1c212393d2 Move the stop_dhcp in start_dhcp again before the
delay. It seems that dhclient really needs the time
to get killed.
2003-08-12 22:44:48 +00:00
mbr
52eb7192f0 Remove the dhclient.${interface}.pid defines. They are now
obsolete. A working dhclient with OMAPI will also not need
this.
2003-08-12 22:27:08 +00:00
mbr
bf109acf47 Make this working with two or more pccards and with more than
one internal device. Don't call the startup procedure again if
we already use start.

Support a manually started dhclient and keep its configured
interfaces after pccard removal.

Make pccard_ether working in single-user mode without /usr mounted.
2003-08-12 20:22:44 +00:00
mbr
6d49b37ca6 Fix typo 2003-08-12 15:15:34 +00:00
harti
73f3c9e057 Create a directory for ATM documentation and help files. 2003-08-12 14:26:57 +00:00
mbr
49004ce670 Improve the handling dhcp handling of pccard_ether.
There are now many configurations which have a NIC on board, and
pccard slots. If a dhclient is running on the internal nic, the
Improve the handling dhcp handling of pccard_ether.

Improve the dhcp handling of pccard_ether.

There are now many configurations which have a NIC on board and
Improve the dhcp handling of pccard_ether.

There are now many configurations which have a NIC on board and
cardbus slots too. If a dhclient was already running on the internal
NIC, the user was forced to kill a running dhclient manually.

If now a pccard is included at startup time, /etc/rc.d/dhclient
start does include it into the startup list for dhcp devices.
That means you can now do dhcp on the internal and the pccard devices
at the same time. If the card is plugged in later, a running dhclient
(working for the internal interface only) is killed, and restarted,
but the interface name of the new pccard is added to the internal
name. After removal, /etc/rc.d/dhclient is started again. This
script does nothing if there are no devices in /etc/rc.conf

This is only a workaround for a well known problem. After we have
a dhcp client which handles device adding and removal, it will go
away.
2003-08-11 20:32:00 +00:00
gshapiro
feeb50cd62 Revert revision 1.25 now that mergemaster does a 'make all' to build
the required .cf file(s).

Submitted by:	ru
X-MFC after:	mergemaster MFC
2003-08-10 20:48:59 +00:00
ume
503b6d63cf add rtsol_flags.
MFC after:	1 week
2003-08-08 17:43:58 +00:00
ache
fe01f02bf4 Add ko_KR.CP949 locale
PR:             55341
submitted by:   Hye-Shik Chang <perky@freebsd.org>
2003-08-08 13:43:49 +00:00
fjoe
a4a02409fe Correct typo in Matt's name. 2003-08-07 21:06:32 +00:00
fjoe
72dbcd633e Fix typo in comments:
/etc/syslogd.conf -> /etc/syslog.conf

MFC after:	3 days
2003-08-07 21:04:40 +00:00
imp
e192817f2b Add entries for NETGEAR MA401RA, IO DATA PCET10CL and Panasonic KXL-CB10AN.
Appologies to: those that submitted these to me.
2003-08-07 04:38:01 +00:00
dcs
13910dd2d8 RFC 3561 (ad-hoc on-demand distance vector routing) was ratified
and the ports assigned by IANA.

PR:		conf/55125
Submitted by:	Bruce M Simpson <bms@spc.org>
MFC after:	2 days
2003-08-06 18:15:10 +00:00
mtm
1f447404af Rename localdaemons to localpkg.
The original name was really a mistake since
/usr/local/etc/rc.d scripts can (and usually do) start
more than just daemons. Even the output in the script
uses 'local packages.' Also, the term 'local daemons' is
used by rc.d/local, which was etc/rc.local of rcOG fame.
No repo-copy because there isn't much history to save.
I will remove localdaemons shortly with all the other
files that don't belong in rc.d anymore.

Discussed with:	dougb, freebsd-rc@yahoogroups.com
2003-08-06 00:35:13 +00:00
mtm
b572ce03ff Support for the Amharic locale. 2003-08-05 05:42:08 +00:00
mtm
d470695abd Apply some sort of order to the FILES list. 2003-07-30 20:05:20 +00:00
mtm
cc05365975 Add two files (early.sh and gbde) that previously were not
hooked up to the build.
2003-07-30 19:53:40 +00:00
mtm
d5fa743afb tty whacking should occur early, but not so early that the
required commands are not on a mounted file system.

Noticed by: bde
2003-07-30 18:53:59 +00:00
ache
3ba64ffc26 Add GB18030 dirs
PR:             51729
Submitted by:   Kang Liu <liukang@bjpu.edu.cn>
2003-07-29 08:02:26 +00:00
harti
b943fbe285 Convert the atm{2,3}.sh rc scripts to normal rc.d scripts. Add support
for the harp(4) pseudo driver and for loadable native HARP drivers
(like hfa_pci).

To use harp(4) the rc variable natm_interfaces must be set to the
list of NATM interfaces to be used for HARP. These interfaces
will be brought up with ifconfig and the harp(4) will be loaded.

To use loadable native HARP drivers atm_load must be set to
the list of drivers to load.

Reviewed by:	mtm, gordon (partly)
2003-07-28 13:30:42 +00:00
mbr
66c81cf73b Change the default for background_dhclient back to NO. It can
cause to much troubles with applications.
2003-07-28 13:09:00 +00:00
mbr
94903d4253 Always start dhclient in the background.
Reviewed by:	mtm
2003-07-28 08:15:52 +00:00
rwatson
c9cc7e1da5 auth.conf seems to be being gradually subsumed by user classes
and PAM configuration.  Remove the line concerning "auth_list"
from the template, since it's referenced only in the tinyware
password command, and only #ifdef KERBEROS, which isn't defined
in tinyware.  Add a comment about auth.conf being on the way
out the door.  The one remaining consumer of auth.conf is
crypt(3).
2003-07-28 02:28:51 +00:00
mbr
d6abab63a2 Add -dynamic to natd if dhcp is used for the natd interface.
Kill natd in stop().

Reviewed by:	mtm
2003-07-27 20:34:30 +00:00
mtm
ffc2d63146 Define the stop command to do nothing when only a specific
interface is to be stopped. In this case we don't want to go
beyond releasing the lease.
2003-07-26 18:58:46 +00:00
mtm
5734a09941 When stopping a dhcp interface, don't just release the lease on
the address, also kill the dhclient process. Instead of doing the
release in the stop command, move it to the precmd stage and allow
rc.subr(8) to automatically kill the dhclient process by leaving the
stop command undefined.

Noticed by:	mbr
2003-07-26 18:50:53 +00:00
mtm
16c12c4989 Missing quotes around a variable. In this case we are only
evaluating the $_precmd command as a string. We're not actually
trying to evaluate the contents of the command.

Reported by:	Glenn Johnson <gjohnson@srrc.ars.usda.gov>
2003-07-24 18:17:21 +00:00
dds
0fb92c3450 Added entry for Billionton LM5LT-10N
Fixed small typo

Reviewed by:	imp
Approved by:	imp
2003-07-22 21:23:01 +00:00
imp
008cded9d9 Add support for DFE-670TXD to OLDCARD
Submitted by: David Wolfskill
PR: 53356
2003-07-19 05:40:06 +00:00
mtm
cab3f24714 Move a period out of an if... clause. The period terminates the
line and must always appear on the line.

Submitted by:	netchild
2003-07-15 12:39:37 +00:00
mtm
cee30b4fae Make sure ipmon is run after cleaning up in /var. Otherwise,
we would lose it's pid file. Also, cleanup the depencies in
rc.d/cleanvar

PR: bin/53516
2003-07-14 13:02:36 +00:00
mtm
e4d7d3b813 Not everyone uses the base system sshd. They can use the sshd_program
variable in rc.conf to have sshd from ports (or somewhere else) installed.
So, don't make the sshd_config for the base system a required file
to start the service.

PR: conf/45766
2003-07-13 01:49:07 +00:00
kan
eeaec0293e Update for new C++ include files layout. 2003-07-11 05:29:59 +00:00
gshapiro
44fa9becb5 Continue trying to build SENDMAIL_CF if the user uses SENDMAIL_CF
instead of SENDMAIL_MC but don't remove on it 'make clean' as the
user may not have the original .mc file and removing it could be
dangerous (e.g., make SENDMAIL_CF=/etc/mail/sendmail.cf clean).

Noticed by:	peter
MFC after:	3 days
2003-07-10 04:53:32 +00:00
des
7f22ba1fe3 Don't do session management in su.
PR:		misc/53293
Submitted by:	ru
2003-07-09 18:40:49 +00:00
mtm
4f27a03569 Be specific about which domainname is not set. It seems the man page
reference is not enough.
2003-07-09 03:21:03 +00:00
mtm
283107bc96 Remove last vestiges of the old rc. 2003-07-08 02:52:14 +00:00
gshapiro
774c6f7b79 Put back install/distribution dependency on the buildable .cf
files to get mergemaster working again.

Noticed by:	Shin-ichi YOSHIMOTO <yosimoto@waishi.jp>
2003-07-07 03:19:46 +00:00
gshapiro
a054077868 Do not install sendmail example/infrastructure files if NO_SENDMAIL is
defined.  The only two files installed in this case are aliases (which
I believe other MTAs may use) and mailer.conf (which isn't sendmail,
it belongs to mailwrapper).

PR:		50477
MFC after:	5 days
2003-07-06 19:23:31 +00:00
gshapiro
b2747e3e92 Bow to popular demand and default SENDMAIL_SUBMIT_MC to
`hostname`.submit.mc which is templated from freebsd.submit.mc if the
default file does not exist.  This makes the building of the submit.cf
behavior identical to that of the the sendmail.cf.

PR:		44256
Submitted by:	Matt Emmerton <matt@gsicomp.on.ca>
MFC after:	5 days
2003-07-06 19:17:04 +00:00
gshapiro
a3400e0239 Get rid of unneeded depend target
Submitted by:	ru
MFC after:	5 days
2003-07-06 18:54:18 +00:00
gshapiro
e1349a1026 - Prevent buildworld from trying to write to /etc/mail/
- Stop 'make clean' from removing SENDMAIL_CF
- install and distribute targets should not attempt to build anything
- SENDMAIL_ADDITIONAL_CF were not installed in the distribution case
- If SENDMAIL_SET_USER_ID was defined, submit.cf was needlessly installed
  in the distribution case
- Collapse install and distribution target into one to remove code
  duplication

Submitted by:	ru
MFC after:	5 days
2003-07-06 18:51:10 +00:00
gshapiro
70b8b6004d Style fixes: tab after a dependency operator should be a single space
second level indent of tab should be four spaces

Submitted by:	ru
MFC after:	3 days
2003-07-06 18:07:06 +00:00
ache
778c5f1f04 Add ARMSCII-8 locale dirs
Submitted by:   Vahe Khachikyan <vahe@khachikyan.de>
PR:             53944
2003-07-05 11:41:10 +00:00
jkoshy
57b932d08f s/man page/manual page/, to make the default announcement
hopefully more comprehensible to a non-geek.
2003-07-03 06:06:09 +00:00
mtm
1701be191f Have mktemp(1) construct the temporary file name for us instead
of providing a template manually.

Submitted by:	Lars Eggert <larse@isi.edu>
2003-06-30 22:06:26 +00:00
brooks
80773a3040 Allow diskless_remount files to contain path beginning with / which will
be mounted relative to the NFS root mountpoint.

Reviewed by:	dillon at backplane.com
MFC After:	3 days
2003-06-30 21:47:06 +00:00
trhodes
9e7ea7862c Properly use ld.so.conf and ld-elf.so.conf as discussed in the manual page.
PR:		25527
Submitted by:	Alexey Neyman <alex.neyman@auriga.ru>
Reviewed by:	jdp
2003-06-30 15:02:05 +00:00
gordon
8c7e24ba5d Add /rescue bits. This basically encompasses all of bin and sbin along
with a couple of bits from usr.bin in a crunchgen'd binary.

Submitted by:	Tim Kientzle <kientzle@acm.org>
2003-06-29 18:35:37 +00:00
mtm
9cd8445162 Ugh. Remove debugging echo. 2003-06-29 17:59:09 +00:00
mtm
3cd75c7bd7 Implement individual operations on static and dhcp interfaces. Previously
network interfaces could only be turned on and off as a group (all
static interfaces or all dhcp interfaces).

When used to start the interface a 'long form' ifconfig output is
used to show the status of the interface, but when stopping an interface
the script will simply output the name of the interface. This is simply my
personal preference. Hopefully as this functionality matures we can
stabilize on a prefered form of output for these scripts.

A stop command to the dhclient script now explicitly releases the dhcp lease.
Behaviour at system shutdown; however, is unchanged since dhclient is not,
by default, run at that time. The client will not release its lease
at shutdown.
2003-06-29 05:34:41 +00:00
mtm
67e705202f o Hookup rc.d/routing and rc.d/netoptions
o Ensure rc.d/network2 and rc.d/network3 are not automatically run
  during boot
o Modify script headers so rcorder(8) can put the two scripts in the
  correct sequence.
2003-06-29 05:15:57 +00:00
mtm
59b3264944 o Repocopied routing and netoptions from network2 and network3, respectively.
o Change the provider names.
o Separate routing into two parts: static routing and routing options. The
  start command will run both parts, but they can be run separately using
  the static and options command, respectively:
  (/etc/rc.d/routing static; /etc/rc.d/routing options)
2003-06-29 05:09:48 +00:00
smkelly
3d5e7b3e42 - Add a software watchdog facility.
This commit has two pieces. One half is the watchdog kernel code which lives
primarily in hardclock() in sys/kern/kern_clock.c. The other half is a userland
daemon which, when run, will keep the watchdog from firing while the userland
is intact and functioning.

Approved by:	jeff (mentor)
2003-06-26 09:50:52 +00:00
sam
7d986dc217 install new 802.11 headers 2003-06-25 14:59:17 +00:00
harti
d7835f2af8 Install the include file for the netgraph ATM node. 2003-06-25 13:28:06 +00:00
kuriyama
c4f96664d3 Check by [ $? -eq 0 ] rather than $?.
Reviewed by:	mtm
2003-06-24 03:55:21 +00:00
phk
02e8c023e8 Remove the devdb stuff, the kernel answers these questions just fine. 2003-06-20 09:47:09 +00:00
wollman
91c5292811 Add a script to automatically attach gbde devices found in fstab
(or rc.conf) at boot time, and detach them when shutting down.  Not
added to the Makefile to give the rcng gurus an opportunity to improve
it.
2003-06-17 02:56:29 +00:00
maxim
5a52dec8ac o Correct usage example: ep(4) does not have 'link0' option.
o Fix a typo.

PR:		misc/51955
Submitted by:	Xander <x+freebsd-gnats@surfnet.nl>
MFC after:	1 week
2003-06-16 09:11:29 +00:00
mtm
775a5dbbe8 Update a comment about symlinking named's pid file to correctly
reflect the code.

Suggested by:	maxim
2003-06-14 22:26:30 +00:00
des
d01d40fe79 Add a system policy, and have the login and su policies include it rather
than duplicate it.  This requires OpenPAM Dianthus, which was committed two
weeks ago; installing these files on a system running a world older than
June 1st, 2003 will cause login(1) and su(1) to fail.
2003-06-14 12:35:05 +00:00
harti
75e2537362 This is a driver for the physical layer chips used in ATM interfaces.
It currently supports the PMC Sierra Lite, Ultra and 622 chips and
the IDT 77105. The driver handles media options and state in a consistent
manner for ATM drivers. The next commit to the midway driver will make
it use utopia.
2003-06-12 14:28:32 +00:00
bde
5d33b7aba2 Fixed some style bugs (disorder and long lines). 2003-06-11 23:17:01 +00:00