summaryrefslogtreecommitdiffstats
path: root/etc/rc.d
Commit message (Collapse)AuthorAgeFilesLines
* Install nsswitch.des2004-05-241-1/+1
|
* If nsswitch.conf does not exist, create it with the default settings.des2004-05-241-7/+30
| | | | | | | The reason for doing this is that (at least some) 4.x binaries are very unhappy if host.conf does not exist, and if we create host.conf but not nsswitch.conf, nsswitch.conf will be created at the next reboot, so it is better to create a correct nsswitch.conf right away.
* Move the task of updating nsswitch.conf / host.conf into a separatedes2004-05-242-64/+108
| | | | script called nsswitch.
* Really remove the return statement this time. Thanks tomtm2004-05-201-1/+0
| | | | ru for noticing.
* The err routine requires two arguments: an exit value and a string.mtm2004-05-202-4/+3
| | | | | Additionaly, it will exit the script so an return statements after calling it are superflous.
* Change hw.acpi.cpu.cx_lowest to accept values in the form of C1,njl2004-05-071-2/+2
| | | | | C2, ... Update power_profile to use the new format. Update the man page to reflect this and give more info on Cx states.
* Protect som cross-script invocations by checks to see that the targetphk2004-04-282-4/+10
| | | | | script exists. This allows pruning of rc.d scripts without getting too many ugly boottime error message
* Initdiskless must run before ipfw, or people will not be able tophk2004-04-281-0/+1
| | | | | | | | | use the conf/* stuff for their firewall configuration. Running ipfw before could seem to make sense in that it would allow one to setup access to the NFS server on a "default-deny" kernel, but it is pretty obvious to the casual observer that such a configuration never makes it far enough to mount the NFS-root in the first place.
* Replace shell's positional parameters safely.ru2004-04-282-4/+3
|
* When using this in non-NFSroot circumstances, `mount -t nfs` mayphk2004-04-271-1/+2
| | | | | return empty. Add a dummy element to prevent the alternate action of the shell builtin "set"
* Removes the check for the existence of the sysctl variablesimon2004-04-261-9/+0
| | | | | | | | debug.watchdog since it is not created by hardware watchdog(4) devices. The watchdog(4) device is always compiled in the kernel, so removing the check should not cause any problems. Approved by: phk
* apply patch so pr can be closeddarrenr2004-04-202-2/+2
| | | | | | PR: misc/56715 Submitted by: grant@NetBSD.org Reviewed by: darrenr
* sendmail_submit_enable and sendmail_outbound_enable checks were reverted.fjoe2004-04-171-2/+2
| | | | Found by: Morten Rodal <morten@rodal.no>
* Actually install preseedrandom.brooks2004-04-171-1/+2
| | | | Reported by: bde
* Remove bogus checks on the value of ${entropy_file} and hardcode outbrooks2004-04-151-11/+3
| | | | | | | entropy source to /entropy. We have to assume there is no rc.conf at this stage of the boot process. Reported by: njl
* Band-aid diskless booting by running a new preseedrandom script beforebrooks2004-04-152-0/+48
| | | | | | | | | | | initdiskless. The output of several commands and if available the contents of /entropy are feed into /dev/random to kickstart the PRNG. /etc/rc.d/initrandom is left alone to maintain the previous behavior as much as possiable. Further work in this area is probably needed. Discussed with: markm
* Catch up with diskless split "diskless" is no longer provided.brooks2004-04-122-2/+2
| | | | Suggested by: cperciva
* Take into account hardware-supplied entropy. If the entropy sourcemarkm2004-04-091-34/+41
| | | | is hardware, the Yarrow initialisations don't need to be done.
* Style fixes, as suggested by Jens Schweikhardt <schweikh@schweikhardt.net>wes2004-04-062-9/+6
|
* Split ramdisk processing in two so it can actually work. Ownershipswes2004-04-062-12/+60
| | | | | | | | and permissions specified per rc.conf(5) now apply both to the md device and to the mountpoint directory, after the mount has completed. This has to be done in two steps, because chown is not available until after /usr has been mounted, but the mdconfig and newfs steps have to complete before fstab processing.
* Add separate script for natd. This fixes race condition with "ipfw restart"fjoe2004-04-053-28/+45
| | | | | | | (when new natd is started before old natd died) and allows to manage natd without touching ipfw. natd should probably be killed with SIGKILL when stopping natd.
* Allow this script to be used for Postfix:fjoe2004-04-051-3/+4
| | | | | | | - Use sendmail_foo variables after load_rc_config so that they actually work. - Utilize sendmail_procname. - Check sendmail_submit_enable instead of sendmail_enable when dealing with mail submission MTA.
* Add rc.d script to start pflogd and add rcvars etc. Also document vars inmlaier2004-04-023-2/+87
| | | | | | | rc.conf(5) and put a sample entry to newsyslog.conf Reviewed by: -current Approved by: bms(mentor)
* - Use "/bin/hostname" explicitly instead of "hostname".krion2004-04-022-4/+4
| | | | | Approved by: tobez MFC after: 1 week
* Extensive documentation changes to the script, but onlyluigi2004-03-311-49/+87
| | | | | | | | | comments and empty lines have been touched. All of this should go in the diskless(8) manpage, now if we had some kind of 'literate programming' tool to extract the comments from the script and put them in a reasonable nroff format, it would be a lot easier to keep code and docs in sync
* Minor changes mostly as discussed on the lists a few days ago:luigi2004-03-311-6/+22
| | | | | | | | | | | | | + SUBDIR.cpio.gz prevents files from SUBDIR/ to be copied when priming the memory filesystems. This restores the old behaviour and makes the copy process a lot more efficient + look for templates also in the list of directories supplied by bootp/dhcp via the T134 option aka kern.bootp_cookie + keep track of directories temporarily mounted with "remount" or "diskless_remount" commands and unmount them once we are done with them (at the end of this script).
* Fix the case where $ntpdate_hosts was not specified and /etc/ntp.confdes2004-03-291-2/+2
| | | | | | does not exist. Submitted by: ru
* A few small cleanups:dougb2004-03-271-14/+4
| | | | | | | 1. Add the shutdown keyword so that the script is run at shutdown time, and the mixer* files are saved. 2. Twiddle whitespace. 3. Remove an unecessary function, and therefore collapse one variable.
* Install the pf rc.d-script (missed Makefile update in original commit)mlaier2004-03-241-1/+1
| | | | Approved by: bms(mentor)
* Added 'nojail' keyword for rc.d/mixer script, while mixer(8) is notpjd2004-03-241-1/+1
| | | | usable in jail by default (no /dev/mixer).
* Overhaul the /etc/rc.d/diskless script by splitting it out intobrooks2004-03-238-567/+101
| | | | | | | | | | hostname, resolve, tmp, and var scripts. The latter three are new and were repo copied. These scripts no longer depend on being booted with and NFS root instead attempt to automaticly create mfs /tmp and /var volumes if the they are not writable. This behavior can be overridden in /etc/rc.conf. Reviewed by: luigi, pjd
* Add rc.d script for pf(4) (more to come once pflogd(8) works as well).mlaier2004-03-231-0/+93
| | | | | | | | Update defaults and write some lines for rc.conf(5) also. Mostly dup'ed from ipf Reviewed by: -current Approved by: bms(mentor)
* Set start_cmd and stop_cmd correctly so the code that extracts the namesdes2004-03-221-4/+3
| | | | | of the ntp servers from ntp.conf is actually used. Remove pidfile since ntpdate is not a daemon.
* Add a way for rc.d/devfs to set more than just the system devfs up.green2004-03-201-3/+16
| | | | | | 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"
* Echo and pass dumpdev as the device argument to savecore.davidc2004-03-181-2/+2
| | | | PR: bin/51655
* Add a mixer script that saves the current settings of all mixers presentjhb2004-03-152-1/+113
| | | | | | | 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@
* Add script for creating ramdisks at boot time, in time to be processedwes2004-03-151-0/+82
| | | | by fstab.
* 1. Remove the named_rcng variable. Mike's caution in this area was a gooddougb2004-03-141-19/+4
| | | | | | | | | | | | | | | | | | | | | | | | 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
* If /conf/diskless_remount exists, use it to remount the entire /confbrooks2004-03-121-2/+13
| | | | | directory. This allows multiple roots (say for different architectures) to share the same set of /conf files.
* Don't run fsck if there's no /etc/fstab.kientzle2004-03-111-0/+2
| | | | | | | 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.
* Make this file more generally usable:phk2004-03-091-19/+35
| | | | | | | | 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.
* Mark scripts as not usable inside a jail by adding keyword 'nojail'.pjd2004-03-0883-83/+83
| | | | Some suggestions from: rwatson, Ruben de Groot <mail25@bzerk.org>
* Removed definition of NOPROG. It was just a style bug (a NetBSD macrobde2004-03-051-2/+0
| | | | | | that became obsolete in NetBSD 22 months ago). Submitted by: ru
* One tab too much.pjd2004-03-051-1/+1
|
* Teach 'hostname' script how to act inside a jail.pjd2004-03-051-4/+12
| | | | No objections from: mtm, arch@
* When this script included NetBSD specific logic, the NetBSD branchmtm2004-03-051-11/+0
| | | | | | | | | | 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
* The syslogd script should require that /var is cleaned before it runs.mtm2004-03-051-1/+1
| | | | | | | Otherwise it could be in the situation where its log socket is removed after it has started. Noticed by: jhay
* Remove scripts we don't use from requirement lines. These weremtm2004-03-0511-11/+11
| | | | hold-overs from the initial NetBSD import.
* Removed include of bsd.own.mk. It was just a style bug (half-bakedbde2004-03-051-2/+0
| | | | chumminess with the implementation).
* Forgotten commit: Hook /etc/rc.d/ike up to the build.bms2004-03-041-0/+1
|
OpenPOWER on IntegriCloud