aboutsummaryrefslogtreecommitdiff
path: root/sbin/devd
Commit message (Collapse)AuthorAgeFilesLines
...
* Make devd shared now that libc++ is in /libEd Maste2022-11-201-2/+0
| | | | | | | | | | Commit 5e6a2d6eb220 moved libc++ from /usr/lib to /lib, so we no longer have an interval during boot when it is not available (before /usr is mounted). We no longer need to force devd to be statically linked. Reviewed by: jhb Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D37409
* pkgbase: Put devd in its own packageEmmanuel Vadot2022-10-261-1/+1
| | | | | | It's not that useful in a jail or in a mdroot. Differential Revision: https://reviews.freebsd.org/D36228
* Track removal of Tokenring and FDDI media types from devd.cc.Pau Amma2022-09-231-3/+1
| | | | | | | | | | | | Fixes: eec02418d83b Remove support for FDDI and token ring media types in userland utilities. Reviewed by: brooks, gjb, imp Approved by: brooks (src), gjb (mentor, src), imp (src) Differential Revision: https://reviews.freebsd.org/D36668 MFC after: 3 days
* mixer: remove volume backwards compat, add % interpretationKyle Evans2022-06-182-6/+6
| | | | | | | | | | | | | | | | The current situation is fairly confusing, where an integer is interpreted as a percent until you slap a decimal on it and magically it becomes an absolute value. Let's have a flag day in 14.0 and remove this shim entirely. Setting with percent can still be useful, so allow a trailing '%' to indicate as such. As a side effect, we tighten down the format allowed in the volume a little bit by ensuring there's no trailing garbage after the value once it's separated into left and right components. Reviewed by: christos, hselasky, pauamma_gundo.com (manpages) Relnotes: yes Differential Revision: https://reviews.freebsd.org/D35101
* pkgbase: move devd's hyperv.conf to hyperv-tools packageMina Galić2022-05-031-1/+4
| | | | | | | | This devd config file is useless without hyperv-tools, so we're moving it into the hyperv-tools package. pr#263691 PR: 263691 MFC after: 3 days
* devd(8): Fix a typo in a configuration fileGordon Bergling2022-04-021-1/+1
| | | | | | - s/coresponding/corresponding/ MFC after: 3 days
* devd: Add rtw to wireless listWarner Losh2022-03-281-1/+1
| | | | | | | rtw88 and rtw89 are coming soon, so add them here now Sponsored by: Netflix MFC After: 1 day
* Chase mixer(8) command-line interface changesHans Petter Selasky2022-03-141-1/+1
| | | | | | | Some more nits regarding mute feature. Differential revision: https://reviews.freebsd.org/D34545 Sponsored by: NVIDIA Networking
* Chase mixer(8) command-line interface changesMateusz Piotrowski2022-03-132-9/+9
| | | | | | | | | | | | | | | | | | FreeBSD 14.0 is going to ship with a new implementation of the mixer(8) command. Unfortunately, in order to support new features like mute, the command-line interface of the new implementation is not backwards compatible. Update all the remaining documentation and scripts in the src tree to use the new syntax. While here, document in usbhidaction.1 that the mute functionality is now supported. Reviewed by: christos, debdrup, hselasky Approved by: hselasky (src) Fixes: 903873ce1560 Implement and use new mixer(3) library for FreeBSD. Differential Revision: https://reviews.freebsd.org/D34545
* devd: correct wifi regexpWarner Losh2022-01-091-3/+3
| | | | | | | Correct the wifi regexp to include iwlwifi and remove wi driver that was has been retired. Sponsored by: Netflix
* devd: remove the scsi regexpWarner Losh2022-01-091-13/+0
| | | | | | | | We don't really use the scsi regexp for anything. The rescan was a workaround that was fixed a long time ago and has been disabled for ages. And the regexp was incomplete. Sponsored by: Netflix
* pkgbase: Put more binaries/lib in runtimeEmmanuel Vadot2021-12-211-1/+1
| | | | | | | | | Move some needed binaries/libs from FreeBSD-utilities to FreeBSD_runtime. This is everything needed to boot to multiuser with FreeBSD-rc installed. MFC after: 2 weeks Sponsored by: Beckhoff Automation GmbH & Co. KG Differential Revision: https://reviews.freebsd.org/D33435
* vt: fix git mismergeWarner Losh2021-11-031-2/+2
| | | | | | | I made a mistaking in merging the final commits for the devctl changes. This adds the 'hushed' variable and has the correct dates for the manuals. Pointy hat to: imp
* vt: fix typoWarner Losh2021-11-031-1/+1
| | | | Notifcation -> Notification
* vt: Add devctl message for bellsWarner Losh2021-11-031-0/+9
| | | | | | | | Generate VT events when the bell beeps. When coupled with disabling the bell,this allows custom bells to be rung when we'd otherwise beep. Reviewed by: kevans Differential Revision: https://reviews.freebsd.org/D32656
* devd(8): Note default config file search locationsFelix Johnson2021-10-191-1/+7
| | | | | | PR: 197003 MFC after: 3 days Reported by: Harald Schmalzbauer <bugzilla.freebsd@omnilan.de>
* devd: remove pccard entriesWarner Losh2021-07-151-36/+1
| | | | | | | The pccard entries are now obsolete, remove them. Sponsored by: Netflix Differential Revision: https://reviews.freebsd.org/D31184
* devctl: add ADDR_ADD and ADDR_DEL devctl event for IFNETRozhuk Ivan2021-06-231-0/+4
| | | | | | | | | Add devd event on network iface address add/remove. Can be used to automate actions on any address change. Reviewed by: imp@ (and minor style tweaks) Sponsored by: Netflix Differential Revision: https://reviews.freebsd.org/D30840
* devctl: add RENAME devctl event for IFNETRozhuk Ivan2021-06-231-1/+3
| | | | | | | | Add devd event on network iface rename. Reviewed by: imp@,asomers@ Sponsored by: Netflix Differential Revision: https://reviews.freebsd.org/D30839
* devd.conf: Remove support for coldsyncCeri Davies2021-05-071-13/+0
| | | | | | | | | | The coldsync port was removed in 2012. The last stable release of coldsync was issued in 2002. Let's get rid of it. PR: 255051 Reviewed by: imp MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D30100
* devd.conf: TypoCeri Davies2021-05-071-1/+1
| | | | | PR: 255051 MFC after: 3 days
* devd.conf(5): Fix a mandoc related issueGordon Bergling2020-12-191-3/+3
| | | | | | | | | - sections out of conventional order: Sh SEE ALSO MFC after: 1 week Notes: svn path=/head/; revision=368800
* Prefer Em to Ar for emphasisWarner Losh2020-11-231-6/+6
| | | | | | | | | Em is better than Ar if all we want to do is underline the text. Submitted by: yuripv@ Notes: svn path=/head/; revision=367963
* Document the rather suprising behavior with ' inside action rules.Warner Losh2020-10-131-1/+57
| | | | | | | | | | To prevent issues with odd shell characters appearing in, a surprising shell feature is used. Document it and a workaround for it. Differential Revision: https://reviews.freebsd.org/D26723 Notes: svn path=/head/; revision=366661
* Remove gratuitous use of '' around argumentsWarner Losh2020-10-091-1/+1
| | | | | | | | There's no need to use ' here, so remove it. This use causes no problems, but is a bad example. Notes: svn path=/head/; revision=366579
* Avoid using single quotes in arguments to logger.Warner Losh2020-10-091-12/+12
| | | | | | | | | | | | | Single quotes interfere with the workaround put in with r335753 and aren't necessary in this case. I believe that all the underling issues with r335753 have been corrected, but need to do more extensive followup before reverting it as a bad idea. PR: 240411 MFC After: 2 days (to give it time to get into 12.2) Notes: svn path=/head/; revision=366578
* devd.conf(5): Bugfix for an issue reported by mandocGordon Bergling2020-10-031-1/+1
| | | | | | | | | - whitespace at end of input line MFC after: 1 week Notes: svn path=/head/; revision=366405
* Sort IFNET alphabeticallyWarner Losh2020-08-311-19/+18
| | | | Notes: svn path=/head/; revision=365017
* Add documentation for ETHERNET events.Warner Losh2020-08-311-0/+8
| | | | Notes: svn path=/head/; revision=365016
* Change the resume notification event from 'kern' to 'kernel'Warner Losh2020-08-241-0/+4
| | | | | | | | | | | | We have both a system of 'kern' and of 'kernel'. Prefer the latter and convert this notification to use 'kernel' instead of 'kern'. As a transition period, continue to also generate the 'kern' notification until sometime after FreeBSD 13 is branched. MFC After: 3 days Notes: svn path=/head/; revision=364725
* Document the VFS FS eventsWarner Losh2020-08-191-0/+14
| | | | | | | | | | | | | | | | | | | MOUNT notifies when a filesystem is mounted REMOUNT notifies when a filesystem is mounted again UNMOUNT notifies when a filesystem is unmounted These events are asynchronous to the actual state of the event (though the data is recorded at a time when it is stable). The mount event is reported after the filesystem is mounted. However, in the interim it may be unmounted by another agent. Likewise, umount is called just before the mountpoint is finished tearing down. It may be remounted (or maybe if the process scheduling is wonky and devd gets to run before the last few steps are complete). Sponsored by: Netflix Diffential Revision: https://reviews.freebsd.org/D25969 Notes: svn path=/head/; revision=364403
* Three typos:Warner Losh2020-08-191-2/+2
| | | | | | | | | | | | Amiga is a proper noun Condition is traditionally spelled starting with 'c' Some, but not all, of the over/under-voltage instances were hyphenated. Since they are all adverb phrases, they all need to be hyphenated. Pointy hat: imp Notes: svn path=/head/; revision=364370
* Fix two typos.Warner Losh2020-08-181-2/+2
| | | | | | | | Submitted by: rpokala@ MFC After: 3 days Notes: svn path=/head/; revision=364364
* Document the ZFS events as best I can. These are not well documented.Warner Losh2020-08-181-0/+11
| | | | | | | MFC After: 3 days Notes: svn path=/head/; revision=364363
* Document the AEON subsystem for the Amiga's power button.Warner Losh2020-08-181-0/+6
| | | | | | | MFC After: 3 days Notes: svn path=/head/; revision=364362
* Document the PMU systemWarner Losh2020-08-181-1/+73
| | | | | | | | | | | The pmu(4) and adb(4) drivers on powerpc generate PMU events. Document them. The allwinner power modules also generate these events. Document those as well. MFC After: 3 days Notes: svn path=/head/; revision=364361
* GEOM::rotation_rate changes are also signaled via devctl.Warner Losh2020-08-181-0/+2
| | | | | | | MFC After: 3 days Notes: svn path=/head/; revision=364360
* Move the possible event types into a column table to make it easier to read.Warner Losh2020-08-181-139/+97
| | | | | | | | | | | | Sort system type alphabetically. Remove some commas that aren't in the devd notification messages. MFC After: 3 days Reviewed by: 0mp (earlier versions), jhb (useful feedback on earlier versions) Differential Revision: https://reviews.freebsd.org/D26105 Notes: svn path=/head/; revision=364359
* Modernize a bit.Warner Losh2020-08-181-14/+8
| | | | | | | | | Remove PC Card specific information. It's of little value these days and on the way out after most of its drivers have been removed. Use iwn instead of wi device. Notes: svn path=/head/; revision=364335
* Remove old devd rules for ActiveWire and Entrega Serial DB25Mateusz Piotrowski2020-07-161-18/+0
| | | | | | | | | | | | Those rules have been broken at least since 8-STABLE, when the port providing the ezdownload binary was removed (misc/ezload). Reviewed by: kevans, imp MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D25686 Notes: svn path=/head/; revision=363248
* Add missing "ereport." prefixes of ZFS events.Alexander Motin2019-12-181-9/+9
| | | | | | | | | | | I was unable to find time when those were working. I think they have been broken for at least 5 years or even longer. Discussed with: avg@ MFC after: 1 month Notes: svn path=/head/; revision=355884
* Fix $() handling, broken since the beginning at r108014.Alexander Motin2019-12-131-3/+3
| | | | | | | | | | | Due to off-by-one error in brackets counting it consumed the rest of the string, preventing later variables expansions. MFC after: 2 weeks Sponsored by: iXsystems, Inc. Notes: svn path=/head/; revision=355718
* Regularize my copyright noticeWarner Losh2019-12-047-14/+7
| | | | | | | | | | | | o Remove All Rights Reserved from my notices o imp@FreeBSD.org everywhere o regularize punctiation, eliminate date ranges o Make sure that it's clear that I don't claim All Rights reserved by listing All Rights Reserved on same line as other copyright holders (but not me). Other such holders are also listed last where it's clear. Notes: svn path=/head/; revision=355394
* Stop linking to libl by specifying we do not need yywrapBaptiste Daroussin2019-09-102-1/+2
| | | | | | | MFC after: 3 days Notes: svn path=/head/; revision=352130
* pkgbase: Create a FreeBSD-utilities package and make it the default oneEmmanuel Vadot2019-09-051-1/+1
| | | | | | | | | | | | | The default package use to be FreeBSD-runtime but it should only contain binaries and libs enough to boot to single user and repair the system, it is also very handy to have a package that can be tranform to a small mfsroot. So create a new package named FreeBSD-utilities and make it the default one. Also move a few binaries and lib into this package when it make sense. Reviewed by: bapt, gjb Differential Revision: https://reviews.freebsd.org/D21506 Notes: svn path=/head/; revision=351858
* acpi_dock(4): Notify devd(8) on dock status change.Mark Johnston2019-05-311-1/+3
| | | | | | | | | PR: 238138 Submitted by: Muhammad Kaisar Arkhan <hi@yukiisbo.red> MFC after: 2 weeks Notes: svn path=/head/; revision=348459
* Introduce new event SIZECHANGE within GEOM system to inform about GEOMPawel Jakub Dawidek2019-03-301-3/+7
| | | | | | | | | | | | | providers mediasize changes. While here, use GEOM nomenclature to describe providers instead of calling them device nodes. Obtained from: Fudo Security Tested in: AWS Notes: svn path=/head/; revision=345727
* devd.conf(5): simplify regexAndriy Voskoboinyk2019-01-271-1/+1
| | | | | | | | Submitted by: Helge Oldach <freebsd@oldach.net> MFC after: 5 days Notes: svn path=/head/; revision=343497
* Fix duplicate wpa_supplicant(8) / hostapd(8) startup with devd(8)Andriy Voskoboinyk2019-01-211-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | Do not invoke 'wlan_up' function from devd(8) on interface creation event (an example to create such event: 'ifconfig wlan0 create wlandev rtwn0'); they're typically produced during 'service netif (re)start' and result in duplicate interface initialization. From the user side if WPA option is used, this result in messages like: - /etc/rc.d/wpa_supplicant: WARNING: failed to start wpa_supplicant or - wpa_supplicant already running? (pid=xxxx). (for HOSTAP interfaces this race may result in startup failure). As a side effect, wpa_supplicant(8) / hostapd(8) will not be invoked when new wlan(4) interface is created manually and corresponding configuration for it is present in rc.conf(5). This change does not affect device attach / removal events. MFC after: 5 days Notes: svn path=/head/; revision=343249
* devd.conf(5): add otus(4) into wifi-driver-regexAndriy Voskoboinyk2019-01-211-2/+2
| | | | | | | MFC after: 5 days Notes: svn path=/head/; revision=343244