aboutsummaryrefslogtreecommitdiff
path: root/etc/devd
Commit message (Collapse)AuthorAgeFilesLines
* Move all devd related configs to sbin/devd/Brad Davis2018-08-218-557/+0
| | | | | | | | | | | This helps with pkgbase as it switches these to using CONFS so they are properly tagged as config files. Approved by: will (mentor), imp Differential Revision: https://reviews.freebsd.org/D16781 Notes: svn path=/head/; revision=338144
* Fix quoting in sending the NOMATCH event to devmatchWarner Losh2018-06-281-1/+1
| | | | | | | | | The NOMATCH event was previously quoted to protect it from shell expansion. However, that quoting now interferes with the quoting devd is doing. Quote to protect just the ?. Notes: svn path=/head/; revision=335763
* devmatch: Address some rc nitsKyle Evans2018-06-141-1/+1
| | | | | | | | | | | | | - devmatch_enable in rc.conf(5) was not gating the start of devmatch - Use quietstart in devd/devmatch to suppress dozens of 'Cannot start' messages and other spurious messages from rc.subr(8) that aren't necessarily helpful. Discussed with: imp Notes: svn path=/head/; revision=335147
* User service foo rather than /etc/rc.d/foo.Warner Losh2018-06-112-2/+2
| | | | | | | | | | | | devd predates service in the system. Modernize usage to use service to start/stop things in reaction to events rather than calling the rc file directly. This was pointed out in my talk at BSDcan as well as indirectly referrred to as a barrier to entry for OpenRC in that working group. Notes: svn path=/head/; revision=334982
* devd: Always install devmatch.confEmmanuel Vadot2018-05-211-1/+2
| | | | | | | | | It allows devd to run devmatch to find the correct driver based on pnp info. No Objection from: imp Notes: svn path=/head/; revision=334007
* Invoke devmatch rc.d script directly instead of depending on "service"Hans Petter Selasky2018-02-171-1/+1
| | | | | | | | | | which is installed in usr/sbin and might not be available at the time devd is started. Sponsored by: Mellanox Technologies Notes: svn path=/head/; revision=329455
* Pass in the NOMATCH event to devmatchWarner Losh2018-02-171-1/+1
| | | | | | | | | | | | | In devd/devmatch.conf, we need to pass the event to the devmatch serivce. It gets passed to devmatch -p for matching. We always pass this, unlike hps' original patch, so we kill two birds with one stone and only match modules to the event passed in. Submitted by: hps@ Sponsored by: Netflix Notes: svn path=/head/; revision=329445
* Add missing semicolon to not break devd during system startup.Hans Petter Selasky2018-02-131-2/+2
| | | | Notes: svn path=/head/; revision=329194
* Fix typoWarner Losh2018-02-121-1/+1
| | | | Notes: svn path=/head/; revision=329155
* Turn devmatch on by default.Warner Losh2018-02-121-1/+8
| | | | | | | | | | | | Turn devmatch on by default. However, use 'start' instead of 'onestart' in the devmatch.conf file so the setting of 'devmatch_enable' is honored. Give an example of what to put in devd.conf if you want to disable just the run-time part of devmatch. Relnotes: yes Notes: svn path=/head/; revision=329154
* Add usb.conf to ObsoleteFiles.Warner Losh2018-02-121-1/+1
| | | | | | | | | | Add a note to UPDATING. Fix a missing tab. Relnotes: Yes Notes: svn path=/head/; revision=329153
* Install devmatch.conf, don't install usb.confWarner Losh2018-02-121-1/+2
| | | | Notes: svn path=/head/; revision=329150
* Switch to using devmatch to autoload drivers. Remove usb.confWarner Losh2018-02-122-6019/+13
| | | | | | | | as obsolete because devmatch gets its information from the same place as the genration scripts. Notes: svn path=/head/; revision=329148
* Regenerate devd/usb.conf after the recent addition of several new device IDs.Ian Lepore2018-02-111-5/+99
| | | | Notes: svn path=/head/; revision=329126
* userland: Fix several typos and minor errorsEitan Adler2017-12-271-12/+12
| | | | | | | | | | | - duplicate words - typos - references to old versions of FreeBSD Reviewed by: imp, benno Notes: svn path=/head/; revision=327230
* Regenerate etc/devd/usb.confAndriy Voskoboinyk2017-10-311-2/+10
| | | | | | | Reminded by: hselasky Notes: svn path=/head/; revision=325252
* Regenerate usb.confKristof Provost2017-10-131-2/+10
| | | | Notes: svn path=/head/; revision=324608
* fix the misleading log facility used in devd/zfs.confAndriy Gapon2017-10-051-12/+12
| | | | | | | | | | | | | | | | | | | | | In general, the "kern" facility is reserved for the kernel use only. If a program specifies that facility, then it is silently converted to "user" facility. So, using logger -p kern.xxx was both misleading and non-specific. Thus, change the facility to local7, so that users can create more adequate syslogd configurations. While local0..local7 are documented as being for local use we already have several examples in the tree where they are used because none of the named facilities really fits. Approved by: asomers MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D12420 Notes: svn path=/head/; revision=324312
* Regenerate usb.conf .Hans Petter Selasky2017-09-201-3/+19
| | | | | | | MFC after: 1 week Notes: svn path=/head/; revision=323811
* hyperv: Add VF bringup scripts and devd rules.Sepherosa Ziehau2017-07-311-0/+73
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | How network VF works with hn(4) on Hyper-V in non-transparent mode: - Each network VF has a cooresponding hn(4). - The network VF and the it's cooresponding hn(4) have the same hardware address. - Once the network VF is up, e.g. ifconfig VF up: o All of the transmission should go through the network VF. o Most of the reception goes through the network VF. o Small amount of reception may go through the cooresponding hn(4). This reception will happen, even if the the cooresponding hn(4) is down. The cooresponding hn(4) will change the reception interface to the network VF, so that network layer and application layer will be tricked into thinking that these packets were received by the network VF. o The cooresponding hn(4) pretends the physical link is down. - Once the network VF is down or detached: o All of the transmission should go through the cooresponding hn(4). o All of the reception goes through the cooresponding hn(4). o The cooresponding hn(4) fallbacks to the original physical link detection logic. All these features are mainly used to help live migration, during which the network VF will be detached, while the network communication to the VM must not be cut off. In order to reach this level of live migration transparency, we use failover mode lagg(4) with the network VF and the cooresponding hn(4) attached to it. To ease user configuration for both network VF and non-network VF, the lagg(4) will be created by the following rules, and the configuration of the cooresponding hn(4) will be applied to the lagg(4) automatically. Sponsored by: Microsoft Differential Revision: https://reviews.freebsd.org/D11635 Notes: svn path=/head/; revision=321762
* Sort REALTEK section and remove duplicate entry for RTL8192CU.Kevin Lo2017-01-241-1/+1
| | | | Notes: svn path=/head/; revision=312681
* Add support for the Realtek RTL8192EU chipset.Kevin Lo2017-01-241-7/+7
| | | | | | | | | Committed over the D-Link DWA-131 rev E1 on amd64 with WPA. Reviewed by: avos Notes: svn path=/head/; revision=312680
* hyperv/vss: Add driver and tools for VSSSepherosa Ziehau2016-11-151-0/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | VSS stands for "Volume Shadow Copy Service". Unlike virtual machine snapshot, it only takes snapshot for the virtual disks, so both filesystem and applications have to aware of it, and cooperate the whole VSS process. This driver exposes two device files to the userland: /dev/hv_fsvss_dev Normally userland programs should _not_ mess with this device file. It is currently used by the hv_vss_daemon(8), which freezes and thaws the filesystem. NOTE: currently only UFS is supported, if the system mounts _any_ other filesystems, the hv_vss_daemon(8) will veto the VSS process. If hv_vss_daemon(8) was disabled, then this device file must be opened, and proper ioctls must be issued to keep the VSS working. /dev/hv_appvss_dev Userland application can opened this device file to receive the VSS freeze notification, hold the VSS for a while (mainly to flush application data to filesystem), release the VSS process, and receive the VSS thaw notification i.e. applications can run again. The VSS will still work, even if this device file is not opened. However, only filesystem consistency is promised, if this device file is not opened or is not operated properly. hv_vss_daemon(8) is started by devd(8) by default. It can be disabled by editting /etc/devd/hyperv.conf. Submitted by: Hongjiang Zhang <honzhan microsoft com> Reviewed by: kib, mckusick MFC after: 3 weeks Sponsored by: Microsoft Differential Revision: https://reviews.freebsd.org/D8224 Notes: svn path=/head/; revision=308664
* Add preliminary support for the RTL8153.Kevin Lo2016-10-311-1/+1
| | | | | | | Reviewed by: hselasky Notes: svn path=/head/; revision=308121
* rtwn(4), urtwn(4): merge common code, add support for 11ac devices.Andriy Voskoboinyk2016-10-171-39/+111
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | All devices: - add support for rate adaptation via ieee80211_amrr(9); - use short preamble for transmitted frames when needed; - multi-bss support: * for RTL8821AU: 2 VAPs at the same time; * other: 1 any VAP + 1 sta VAP. RTL8188CE: - fix IQ calibration bug (reason of significant speed degradation); - add h/w crypto acceleration support. USB: - A-MPDU Tx support; - short GI support; Other: - add support for RTL8812AU / RTL8821AU chipsets (a/b/g/n only; no ac yet); - split merged code into subparts: * bus glue (usb/*, pci/*, rtl*/usb/*, rtl*/pci/*) * common (if_rtwn*) * chip-specific (rtl*/*) - various other bugfixes. Due to code reorganization, module names / requirements were changed too: urtwn urtwnfw -> rtwn rtwn_usb rtwnfw rtwn rtwnfw -> rtwn rtwn_pci rtwnfw Tested with RTL8188CE, RTL8188CUS, RTL8188EU and RTL8821AU. Tested by: kevlo, garga, Peter Garshtja <peter.garshtja@ambient-md.com>, Kevin McAleavey <kevin.mcaleavey@knosproject.com>, Ilias-Dimitrios Vrachnis <id@vrachnis.com>, <otacilio.neto@bsd.com.br> Relnotes: yes Notes: svn path=/head/; revision=307529
* Regenerate usb.conf .Hans Petter Selasky2016-04-291-4/+20
| | | | | | | MFC after: 1 week Notes: svn path=/head/; revision=298783
* Fix etcupdate(8) with rc.sendmail and devd/*. It turns outGlen Barber2016-04-171-6/+1
| | | | | | | | | | BIN1 and such in etc/* cannot use FILESGROUPS. Reported by: peter Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=298140
* MFH r289384-r293170Glen Barber2016-01-041-12/+228
|\ | | | | | | | | | | | | Sponsored by: The FreeBSD Foundation Notes: svn path=/projects/release-pkg/; revision=293172
| * Regenerate usb.conf .Hans Petter Selasky2015-12-031-12/+228
| | | | | | | | | | | | | | MFC after: 1 week Notes: svn path=/head/; revision=291703
* | Finish merging from head, messed up in previous attemptBaptiste Daroussin2015-09-121-1/+10
|\| | | | | | | Notes: svn path=/projects/release-pkg/; revision=287710
| * - Fix compilation after r285909 with USB_DEBUG defined.Marius Strobl2015-07-271-1/+10
| | | | | | | | | | | | | | - Regenerate usb.conf. Notes: svn path=/head/; revision=285913
* | Merge from head @274131Baptiste Daroussin2015-06-201-11/+35
|\| | | | | | | Notes: svn path=/projects/release-pkg/; revision=284621
| * Regenerate usb.conf .Hans Petter Selasky2015-06-191-11/+35
| | | | | | | | | | | | | | MFC after: 1 week Notes: svn path=/head/; revision=284595
* | Make acpi an individual packageBaptiste Daroussin2015-03-051-2/+7
|/ | | | | | | Flag /etc/devd/asus.conf as a config file so it will be automatically merged on updates Notes: svn path=/projects/release-pkg/; revision=279661
* Honor MK_ACPI in etc/devd and etc/rc.dEnji Cooper2015-01-261-0/+4
| | | | | | | | MFC after: 1 week Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=277730
* Regenerate usb.conf .Hans Petter Selasky2014-12-151-18/+69
| | | | | | | MFC after: 1 week Notes: svn path=/head/; revision=275791
* Missed a terminating ';'.Justin Hibbits2014-11-181-1/+1
| | | | | | | X-MFC-with: r273009 Notes: svn path=/head/; revision=274660
* HYPERV isn't available on all architectures, but just on by defaultWarner Losh2014-10-161-4/+3
| | | | | | | | | | | for i386/amd64. Rather, it only works on i386/amd64 and should only be built there. Rather than change the default based on which architecutre, do things more directly by only building it on i386/amd64 and having it always on. This is how we handle other options that are relevant only for a few architectures. Notes: svn path=/head/; revision=273155
* Add an AC line monitor so power_profile can workJustin Hibbits2014-10-121-1/+7
| | | | | | | | | | | | | | | | | | | | | | Summary: Add a polling loop (1Hz) to monitor the battery and AC status, to notify devd like ACPI does for power monitoring. This allows /etc/rc.d/power_profile to work on PowerPC laptops Test Plan: Tested on a Titanium PowerBook, configuring economy_cpu_freq and performance_cpu_freq, disabling powerd. Reviewers: #powerpc, nwhitehorn Reviewed By: nwhitehorn Subscribers: rpaulo Differential Revision: https://reviews.freebsd.org/D937 Notes: svn path=/head/; revision=273009
* Add example devd configuration file for USB printers.Hans Petter Selasky2014-10-092-1/+19
| | | | Notes: svn path=/head/; revision=272820
* Regenerate usb.confHans Petter Selasky2014-09-281-13/+115
| | | | | | | MFC after: 3 days Notes: svn path=/head/; revision=272253
* Fix cdev. It is a device node name, not a pathname.Hiroki Sato2014-09-191-2/+2
| | | | Notes: svn path=/head/; revision=271854
* Use a devd event to start hv_kvpd instead of doing so in rc.d script.Xin LI2014-09-172-0/+23
| | | | | | | | | | | This is cleaner and eliminates the unneeded startup of KVP daemon on systems that do not run as a Hyper-V guest. Submitted by: hrs X-MFC-with: 271493, 271688, 271699 Notes: svn path=/head/; revision=271696
* Make the USB and ZFS devd configuration files optional depending on theEnji Cooper2014-08-151-1/+9
| | | | | | | | | | | | | | values of MK_USB/MK_ZFS Making zfs.conf optional resolves PR # 186971 PR: 186971 Phabric: D606 Approved by: jmmv (mentor) Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=270028
* move devd rules for zfs events into a separate file and fix stale event typesAndriy Gapon2014-02-142-1/+78
| | | | | | | | | | | | | Also, extend with some new events. Additionally, tag syslog messages with 'ZFS' instead of using explicit "ZFS: " prefix in the messages themselves. Tested by: Daniel O'Connor <doconnor@gsoft.com.au> MFC after: 8 days Sponsored by: HybridCluster Notes: svn path=/head/; revision=261894
* Regenerate usb.confHans Petter Selasky2014-02-061-1/+19
| | | | | | | MFC after: 2 weeks Notes: svn path=/head/; revision=261546
* Regenerate usb.confHans Petter Selasky2014-02-041-19/+35
| | | | | | | MFC after: 2 days Notes: svn path=/head/; revision=261479
* Regen.Kevin Lo2014-01-031-4/+28
| | | | Notes: svn path=/head/; revision=260220
* Regen.Kevin Lo2013-12-271-2/+2
| | | | Notes: svn path=/head/; revision=259940
* Regen.Kevin Lo2013-12-061-3/+3
| | | | Notes: svn path=/head/; revision=259033