summaryrefslogtreecommitdiffstats
path: root/etc/rc.d/devfs
Commit message (Collapse)AuthorAgeFilesLines
* Do not check for existence of symlink source for the link action. Thiskib2010-01-231-1/+1
| | | | | | | does not work for link in subdirectory, and sometimes it is useful to create symlink in advance for dynamically created device node. MFC after: 1 week
* As previously discussed, add the svn:executable property to all scriptsdougb2008-07-161-0/+0
|
* Allow the use of wildcarded device names in devfs.confmatteo2006-01-211-10/+16
| | | | | | PR: conf/90760 Submitted by: Darren Pilgrim <darren.pilgrim@gmail.com> Approved by: philip (mentor)
* Remove rcconf.sh from /etc/rc.d, and instead load the configurationdougb2005-12-101-1/+1
| | | | | | | | | | | | | | | | as part of rc. Doing this, and the sourcing of rc.subr after we have determined if we are booting diskless (and correspondingly run rc.initdiskless if necessary) are safe, and actually allow fewer files to be needed on the diskless box. This also allows variables from the configuration to be available to rc itself, such as ... Add a variable to rc.conf, early_late_divider, which designates the script which separates the early and late stages of the boot process. Default this to mountcritlocal, and add text to etc/defaults/rc.conf, rc.conf(5) and diskless(8) which describes how and why one might want to change this. Reviewed by: brooks
* Move devfs earlier in the boot sequence. Some system daemons and othermtm2004-10-231-2/+2
| | | | | | programs may need to use the symlinks and permissions that it sets up. Discussed on: -current
* Remove the requirement for the FreeBSD keyword as it no longermtm2004-10-071-1/+1
| | | | | | | makes any sense. Discussed with: dougb, brooks MFC after: 3 days
* 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"
* Mark scripts as not usable inside a jail by adding keyword 'nojail'.pjd2004-03-081-1/+1
| | | | Some suggestions from: rwatson, Ruben de Groot <mail25@bzerk.org>
* Add a general mechanism for creating and applyingmtm2003-08-201-1/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Allow users to configure stuff in /dev once again by re-doing the devfsdougb2003-05-061-13/+26
| | | | | | | | script to read /etc/devfs.conf, and take appropriate actions based on what it finds there. The (commented out) examples in the new devfs.conf file are taken in part from the old rc.devfs script.
* Move securelevel further back in the boot order.mtm2003-05-051-0/+1
| | | | | Approved by: markm (mentor)(implicit) Reviewed by: dougb
* Create a symbolic link /dev/vga -> /dev/ttyv0.mtm2003-05-021-0/+7
| | | | | | | | We can't remove the sourcing of /etc/rc.devfs yet in case the user might have custom entries in it. We will have to come up with an /etc/devfs.rules or something to make this kind of thing easier. Approved by: markm (mentor)(implicit)
* Bring in the settings from /etc/rc.devfs, which include the vga symlinkdougb2002-12-151-2/+3
| | | | | | | | | that's being replaced here. This is what /etc/rc does now. There is no NetBSD devfs, so there is no compatibility issue. Not objected to by: FreeBSD-rc@yahoogroups.com Approved by: re (murray)
* Merge in all the changes that Mike Makonnen has been maintaining for agordon2002-06-131-0/+19
while. This is only the script pieces, the glue for the build comes next. Submitted by: Mike Makonnen <makonnen@pacbell.net> Reviewed by: silence on -current and -hackers Prodded by: rwatson
OpenPOWER on IntegriCloud