summaryrefslogtreecommitdiffstats
path: root/etc/rc
Commit message (Collapse)AuthorAgeFilesLines
* 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
* Perhaps I should have looked at the whole file rather than just the delta.peter1999-08-061-2/+2
| | | | | | Use -eq rather than -ne. Obtained from: OpenBSD (millert, etc/rc rev 1.104)
* I don't think `customify' is a real word.peter1999-08-061-2/+2
|
* Don't use /tmp/_motd in the aftermath of the chflags(2) revelations.peter1999-08-061-8/+11
| | | | Obtained from: OpenBSD (millert etc/rc rev 1.102 and hugh)
* Clear flags on psuedo terminals before trying to chmod and chown them.imp1999-08-021-1/+2
|
* Don't allow users to prevent the updating of /etc/motd on machines forsheldonh1999-06-211-3/+3
| | | | | | | | which /tmp is not mounted in MFS, clear_tmp_enable="NO" and update_motd="YES". PR: 10005 Submitted by: Anton Voronin <anton@urc.ac.ru>
* Ignore the quota.user and quota.group files rather than thebrian1999-06-011-2/+3
| | | | ``quotas'' file when cleaning /tmp.
* Break lines to be < 80 chars.cracauer1999-04-021-2/+3
| | | | Submitted by: BDE
* Add variable start_vinum. If set to YES, it will start vinum andgrog1999-04-021-2/+4
| | | | | | automagically find all the partitions. This is to be preferred to the somewhat emetic usage of vinum_slices and the equally obnoxious 'vinum read' command.
* Use new -T switch to turn on immediate interruptibilty in shellcracauer1999-04-011-3/+3
| | | | | scripts. Also, the ugly 'echo -n' hack to prevent sh from a wrong optimization isn't needed anymore.
* Add two features:imp1999-03-281-1/+6
| | | | | | | | | | | | | log_in_vain: log_in_vain turns on logging for packets to ports for which there is no listener. rc.sysctl: A generic way to set sysctl values. It reads /etc/syslog.conf and sets values based on that. No /etc/syslog.conf has been checked in yet, and I've not added this to the makefile yet until I get more feedback. Reviewed by: -current, -hackers and bde especially
* Split check_quotas into check_quotas and enable_quotasbillf1999-03-171-7/+14
| | | | | | | | | | enable_quotas - use quotas on your system check_quotas - check for violations on startup By assuming that a system was neat and without violation before it booted we can skip a long (and at that point needless) process. Submitted by: Alex Perel <veers@disturbed.net>
* Fix bogons in previous commit.des1999-03-141-2/+2
|
* Chown the pty device nodes back to root:tty.des1999-03-141-1/+2
|
* Add ${lpd_program} and ${portmap_program} as variables in rc.conf, withjfitz1999-03-111-2/+2
| | | | | | suitable defaults pointing to the FreeBSD-shipped versions. This will allow for easier integration of third-party replacements for these daemons. Reviewed by: Several members of -committers
OpenPOWER on IntegriCloud