summaryrefslogtreecommitdiffstats
path: root/etc/rc
Commit message (Collapse)AuthorAgeFilesLines
* In addition to:dougb2000-12-171-30/+35
| | | | | | | | | | | | | | | 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 Also: * Use rm -f on /var/run/dev.db so if it's not there (devfs) it doesn't error * Shorten the ldconfig messages so that the default fits on one line * Test whether /var/msgs/bounds is a link before overwriting it * Generally futz around with whitespace
* Flesh out a simple framework for dependency checking rc.conf enabledbsd2000-12-131-23/+19
| | | | | | services. Simple YES/NO style *_enable services are supported. Reviewed by: obrien
* If portmap is started as a dependancy, echo a notice during boot.bsd2000-12-131-3/+18
| | | | Approved by: obrien
* Set portmap_enable if Amd or running as an NFS server is enabled.obrien2000-12-111-0/+15
| | | | This bites too many systems upgrading from our change in defaults.
* Do a better job of preserving the value rc is called withdougb2000-11-211-1/+3
| | | | | | | in the face of possible corruption by rc.diskless*. PR: misc/21904 Submitted by: Anton Voronin, anton@urc.ac.ru
* On DEVFS machines, the device name database is no use.phk2000-10-221-2/+6
|
* Redirect the stderr of dd to /dev/null so the user doesn't see ratherjkh2000-10-201-2/+2
| | | | | weird dd output on bootup as /dev/random is being reseeded. Also, can't this happen in the background since /dev/random blocks?
* Use dd to better block the data being sent to /dev/random.jwd2000-10-181-2/+2
| | | | | Note: I am not redirecting stdout so that the amount of data being transferred can be seen (22k and 576k currently).
* Style fix only.jwd2000-10-161-3/+5
| | | | | | init 6 vs. /sbin/reboot problem still exists (pr 14829) Submitted by: Doug Barton <DougB@gorean.org>
* Having played with this commit request for a few hours, I'vejwd2000-10-161-13/+45
| | | | | | | | | | | | | | | | | | convinced myself that it's better then what we have, but still not perfect. /etc/rc : Attempt to seed /dev/random with multiple backoffs. /etc/rc.shutdown : Attempt to write the entropy_file. In debugging the above changes, I've run into some inconsistancies... rc.shutdown is run via 'init 6', but does not appear to be run via '/sbin/reboot'. Thus, this set of changes improves life depending on the mechanism used to shut the system down. Submitted by: Doug Barton <DougB@gorean.org> Approved by: markm
* Reseed the random device as early as possible to prevent hangs,markm2000-10-141-14/+25
| | | | | and provide some form of entropy in case there is no seed file to prevent a reboot from hanging unnecessarily.
* "fix" savecore by moving dev_mkdb before it to allow device name sensingache2000-10-121-4/+4
|
* Turn the verbose mode on for dumpon(8).ru2000-10-121-1/+1
|
* Add copyright notices. Other systems have been barrowing our /etc filesobrien2000-10-081-0/+26
| | | | w/o giving any credit.
* Only whack pseudo-terminals into shape if they exist. They mightsheldonh2000-08-211-3/+5
| | | | not yet exist in the DEVFS case.
* After some discussion with markm, back out most of rev 1.221,sheldonh2000-08-211-9/+1
| | | | | | | which really wasn't such a hot idea in retrospect. If the random device isn't available, it probably isn't wanted. If it's wanted, it should be enabled in loader.conf.
* The output of this script got a little broken in rev 1.225, withsheldonh2000-08-181-0/+3
| | | | | | | the output for the linux_enable and svr4_enable stuff "floating in the middle of nowhere". Give them their own section, called "additional ABI support".
* Don't rely on a shell scripts to do the simple job of loadingsheldonh2000-08-181-2/+8
| | | | | | | | | | kernel modules for ibcs2_enable and svr4_enable. Don't rely on a shell script to do the neglibly less simple job of loading a kernel module and running one command for linux_enable. These shell scripts are going away.
* Move the running of the Linux and SVR4 compat bits to the arch independentobrien2000-08-151-0/+17
| | | | | | location. Sponsored by: LinuxWorld frustration
* Add an rc.conf knob "ldconfig_insecure" to disable ldconfig'sjdp2000-08-111-2/+8
| | | | | | security checks. Set the default to NO, i.e., secure. Submitted by: Maxime Henrion <mhenrion@cybercable.fr>
* Improve purgedir():brian2000-08-091-3/+5
| | | | | | | | | Fix leading & trailing space handling Suggested by: ben Handle files beginning with - correctly Don't follow symlinks (cd /var/spool/lock; ln -s /. horror)
* Don't use find(1) before nfs filesystems have been mounted asbrian2000-08-081-1/+20
| | | | | | | | | | it lives in /usr/bin. Instead, locate files manually. Note, only *files* under /var/spool/lock are now deleted rather than everything that's not a directory. I think this is more correct, but if anyone disagrees please feel free to change it. Problem pointed out by: bde
* If the initial attempt to write ${entropy_file} to /dev/random failssheldonh2000-07-241-2/+10
| | | | | | | and the randomdev.ko module is not resident, try to load the module and perform the write again. Reviewed by: markm
* Improve on previous commit:sheldonh2000-07-171-2/+2
| | | | | | | Don't inhibit the trailing newline for entropy-related messages. Try harder to save the seed file on shutdown. Reviewed by: markm
* Add entropy caching. With this, some entropy is cached at shutdownmarkm2000-07-171-0/+14
| | | | | | | | time, and this is used to reseed the random number generator at boot time. NOTE - this has no hope of working if you halt(); you need to execute rc.shutdown to get the entropy stash.
* Don't attempt to rm directories under /var/spool/lock.brian2000-06-081-1/+1
|
* Sanitise NFS fs mounting for /usr NFS mounts.asmodai2000-05-291-2/+4
| | | | | Submitted by: Doug Barton <DougB@gorean.org> Reviewed by: bde
* Pedantic change: "reboot" -> "boot"davidn2000-05-111-1/+1
|
* Add to defaults/rc.conf a new function source_rc_confs which rcsheldonh2000-04-271-0/+4
| | | | | | | | | | | | | | | | | 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>
* s/grep/grep -qdan2000-03-271-1/+1
| | | | Submitted by: ru
* Only tell the user that we're Mounting NFS file systems when we have NFSdan2000-03-251-4/+6
| | | | | | | file systems to mount. PR: 17594 Submitted by: Doug Barton <Doug@gorean.org>
* Get the order of things right; the keys need to be generatedmarkm2000-02-281-0/+9
| | | | | early to allow entropy to replenish. sshd must start late to catch the full effects of ldconfig.
* Add IPv6 configuration scripts.shin2000-02-231-0/+9
| | | | | | | | | | | Initial version created by, and kindly much tested by: bmah@CA.Sandia.GOV (Bruce A. Mah) Approved by: jkh Reviewed by: bmah@CA.Sandia.GOV (Bruce A. Mah), Ollivier Robert <roberto@keltia.freenix.fr> Obtained from: KAME project
* /dev/vn0b is a character device now.nsayer2000-02-031-1/+1
| | | | Approved by: jkh
* This is another in Martin Blapp's N-series of mount-related cleanups :)green2000-01-151-38/+4
| | | | | | | | | | | | | Changes are: - rpc.umntall is called at the right places now in /etc/rc* - rpc.umntall timeout has been lowered from two days (too high) to one - verbose messages in rpc.umntall have been clarified - kill double entries in /var/db/mounttab when rpc.umntall is invoked - ${early_nfs_mounts} has been removed from /etc/rc - patched mount(8) -p to print different pass/dump values for ufs filesystems. (last patch recieved from dan <bugg@bugg.strangled.net>) Submitted by: Martin Blapp <mbr@imp.ch>, dan <bugg@bugg.strangled.net>
* Third try.. Avoid filenames with spaces in them.peter2000-01-061-2/+2
| | | | | PR: 15937 Pointed out by: Koga Youichirou <y-koga@jp.FreeBSD.org>
* Missed a filename variable quote in rcpeter2000-01-051-1/+1
|
* Quote arguments in vi recover script.peter2000-01-051-3/+3
| | | | | PR: 15901 Submitted by: KOJIMA Hajime <kjm@rins.ryukoku.ac.jp>
* Remove kvm_mkdb as it isn't installed anymore. libkvm asks directlypeter1999-12-271-1/+0
| | | | via kldsym(2), and crash dumps use nlist directly (and always have).
* Install sendmail.cf into /etc/mail.obrien1999-12-191-1/+1
| | | | | | | | | The current offical Sendmail Inc. version uses /var/mail/ and when we upgrade our repository to that version, we will get the change. It is best to make the path change in 4.0-R (which may not have the latest Sendmail Inc. version, than to change in mid-4.x stream when we may upgrade. Ok'ed by: Peter (quite a while ago)
* Call rpc.umntall only if nfs_client_enable, hang occurse otherwiseache1999-11-301-3/+7
|
* Finish up umntall support. init now passed an argument to thedillon1999-11-221-3/+24
| | | | | | | | | rundown script 'reboot' or 'single'. ISO support (which never worked) has been removed from mount_nfs. mount_nfs and umount now use mounttab, which allows umntall to work properly. The rc scripts now call umntall as appropriate. Submitted by: Martin Blapp <mb@imp.ch>
* Add network pass4 - after all local (/usr/local/etc/rc.d f.e.)ache1999-11-171-0/+4
| | | | | | daemons started. Move log_in_vain option there. It is needed to avoid lot of connections to port 80 logged on production WWW server prior Apache started from /usr/local/etc/rc.d
* Slight reordering of /etc/rc order: It now goesnsayer1999-09-241-29/+29
| | | | | | | | | | | | | | | | | | ... recover vi msgs/bounds update MOTD rc.{arch} rc.devfs rc.local $local.startup securelevel The motive behind this is to delay rc.{arch} as long as possible, as it loads the screensaver, which kills the splash screen. But at the same time, it can't be done after rc.devfs, as that might depend on arch specific actions. rc.local and local.startup also should come after these, and securelevel must be last of all.
* Remove the "vinum_drives" rc.conf knob. According to Greg <grog@lemis.com>jkoshy1999-09-221-5/+0
| | | | | | this is no longer the right way to start Vinum unless you are doing some kind of maintenance, and that's not the sort of thing that would go into rc.conf.
* Apply a consistent style to most of the etc scripts. Particularly, usesheldonh1999-09-131-155/+251
| | | | | | | | | case instead of test where appropriate, since case allows case is a sh builtin and (as a side-effect) allows case-insensitivity. Changes discussed on freebsd-hackers. Submitted by: Doug Barton <Doug@gorean.org>
* This fix adds checking for the existance of the /var/msgsroberto1999-09-121-1/+1
| | | | | | | directory before attempting to create the bounds file. PR: bin/13184 Submitted by: "Stephen J. Roznowski" <sjr@home.net>
* Remove all non-file like things in /var/tmp/vi.recover on reboot.imp1999-08-301-0/+1
|
* $Id$ -> $FreeBSD$peter1999-08-271-1/+1
|
* Style clean-up:sheldonh1999-08-251-54/+54
| | | | | | | | | | | | | | | | * All variables are now embraced: ${foo} * All comparisons against some value now take the form: [ "${foo}" ? "value" ] where ? is a comparison operator * All empty string tests now take the form: [ -z "${foo}" ] * All non-empty string tests now take the form: [ -n "${foo}" ] Submitted by: jkh
OpenPOWER on IntegriCloud