From fc5acf467cdc89b0bd78ae836e476f64b8b44873 Mon Sep 17 00:00:00 2001 From: Edward Tomasz Napierala Date: Tue, 6 Mar 2018 21:05:34 +0000 Subject: [PATCH] Add example devd.conf(5) entry for notifying init(8) about new USB ttys. MFC after: 2 weeks Sponsored by: The FreeBSD Foundation --- etc/devd.conf | 11 +++++++++++ 1 file changed, 11 insertions(+) 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"; +}; + */