Author: trasz
Date: Tue Mar  6 21:05:34 2018
New Revision: 330547
URL: https://svnweb.freebsd.org/changeset/base/330547

Log:
  Add example devd.conf(5) entry for notifying init(8) about new USB ttys.
  
  MFC after:    2 weeks
  Sponsored by: The FreeBSD Foundation

Modified:
  head/etc/devd.conf

Modified: head/etc/devd.conf
==============================================================================
--- head/etc/devd.conf  Tue Mar  6 20:31:14 2018        (r330546)
+++ head/etc/devd.conf  Tue Mar  6 21:05:34 2018        (r330547)
@@ -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";
+};
+
 */
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to