Add example devd.conf(5) entry for notifying init(8) about new USB ttys.

MFC after:	2 weeks
Sponsored by:	The FreeBSD Foundation
This commit is contained in:
Edward Tomasz Napierala 2018-03-06 21:05:34 +00:00
parent 015ab09843
commit fc5acf467c
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=330547

View File

@ -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";
};
*/