diff options
author | Edward Tomasz Napierala <trasz@FreeBSD.org> | 2018-03-06 21:05:34 +0000 |
---|---|---|
committer | Edward Tomasz Napierala <trasz@FreeBSD.org> | 2018-03-06 21:05:34 +0000 |
commit | fc5acf467cdc89b0bd78ae836e476f64b8b44873 (patch) | |
tree | a9cae73214607fc380de39b3b92c3f9e4466e952 /etc/devd.conf | |
parent | 015ab098439452cb798dbea5dd2d4fe57c72808c (diff) | |
download | src-fc5acf467cdc89b0bd78ae836e476f64b8b44873.tar.gz src-fc5acf467cdc89b0bd78ae836e476f64b8b44873.zip |
Add example devd.conf(5) entry for notifying init(8) about new USB ttys.
MFC after: 2 weeks
Sponsored by: The FreeBSD Foundation
Notes
Notes:
svn path=/head/; revision=330547
Diffstat (limited to 'etc/devd.conf')
-rw-r--r-- | etc/devd.conf | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/etc/devd.conf b/etc/devd.conf index af4bbd3f623e..775a41f7deae 100644 --- a/etc/devd.conf +++ b/etc/devd.conf @@ -339,4 +339,15 @@ notify 10 { action "logger $comm $core"; }; +# Let the init(8) know there's a new USB serial interface it might +# want to run getty(8) for. This includes device-side tty created +# by usb_template(4). +notify 100 { + match "system" "DEVFS"; + match "subsystem" "CDEV"; + match "type" "CREATE"; + match "cdev" "ttyU[0-9]+"; + action "/sbin/init q"; +}; + */ |