aboutsummaryrefslogtreecommitdiff
path: root/etc/rc.d/devfs
Commit message (Collapse)AuthorAgeFilesLines
* - Add descriptions to most of the rc scripts. Those are mostly taken from theirLars Engels2016-04-231-0/+1
| | | | | | | | | | | daemon's manpage and probably improved. - Consistently use "filesystem" not "file system". Approved by: bapt, brueffer Differential Revision: D452 Notes: svn path=/head/; revision=298514
* As it stands right now, the default devfs rulesets are only loaded as aDoug Barton2012-02-081-1/+2
| | | | | | | | | | | | side effect of something else using them. If they haven't been loaded already but you want to use them, say for configuring a jail, you're out of luck. So add a knob to always load the default rulesets. While I'm here document the other devfs_ knobs in rc.conf.5. Notes: svn path=/head/; revision=231194
* Do not check for existence of symlink source for the link action. ThisKonstantin Belousov2010-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 Notes: svn path=/head/; revision=202880
* As previously discussed, add the svn:executable property to all scriptsDoug Barton2008-07-161-0/+0
| | | | Notes: svn path=/head/; revision=180563
* Allow the use of wildcarded device names in devfs.confMatteo Riondato2006-01-211-10/+16
| | | | | | | | | PR: conf/90760 Submitted by: Darren Pilgrim <darren.pilgrim@gmail.com> Approved by: philip (mentor) Notes: svn path=/head/; revision=154637
* Remove rcconf.sh from /etc/rc.d, and instead load the configurationDoug Barton2005-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 Notes: svn path=/head/; revision=153298
* Move devfs earlier in the boot sequence. Some system daemons and otherMike Makonnen2004-10-231-2/+2
| | | | | | | | | programs may need to use the symlinks and permissions that it sets up. Discussed on: -current Notes: svn path=/head/; revision=136803
* Remove the requirement for the FreeBSD keyword as it no longerMike Makonnen2004-10-071-1/+1
| | | | | | | | | | makes any sense. Discussed with: dougb, brooks MFC after: 3 days Notes: svn path=/head/; revision=136224
* Add a way for rc.d/devfs to set more than just the system devfs up.Brian Feldman2004-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" Notes: svn path=/head/; revision=127222
* Mark scripts as not usable inside a jail by adding keyword 'nojail'.Pawel Jakub Dawidek2004-03-081-1/+1
| | | | | | | Some suggestions from: rwatson, Ruben de Groot <mail25@bzerk.org> Notes: svn path=/head/; revision=126744
* Add a general mechanism for creating and applyingMike Makonnen2003-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. Notes: svn path=/head/; revision=119166
* Allow users to configure stuff in /dev once again by re-doing the devfsDoug Barton2003-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. Notes: svn path=/head/; revision=114769
* Move securelevel further back in the boot order.Mike Makonnen2003-05-051-0/+1
| | | | | | | | Approved by: markm (mentor)(implicit) Reviewed by: dougb Notes: svn path=/head/; revision=114735
* Create a symbolic link /dev/vga -> /dev/ttyv0.Mike Makonnen2003-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) Notes: svn path=/head/; revision=114516
* Bring in the settings from /etc/rc.devfs, which include the vga symlinkDoug Barton2002-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) Notes: svn path=/head/; revision=107919
* Merge in all the changes that Mike Makonnen has been maintaining for aGordon Tetlow2002-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 Notes: svn path=/head/; revision=98184