Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 30 Sep 2020 11:29:07 +0000 (UTC)
From:      Bjoern Heidotting <bhd@FreeBSD.org>
To:        doc-committers@freebsd.org, svn-doc-all@freebsd.org, svn-doc-head@freebsd.org
Subject:   svn commit: r54550 - head/en_US.ISO8859-1/books/handbook/usb-device-mode
Message-ID:  <202009301129.08UBT7FX037758@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bhd
Date: Wed Sep 30 11:29:07 2020
New Revision: 54550
URL: https://svnweb.freebsd.org/changeset/doc/54550

Log:
  - Turn screens into programlisting
  - use <keycap>
  - use macos makro
  
  Reviewed by:	bcr
  Differential Revision:	https://reviews.freebsd.org/D26601

Modified:
  head/en_US.ISO8859-1/books/handbook/usb-device-mode/chapter.xml

Modified: head/en_US.ISO8859-1/books/handbook/usb-device-mode/chapter.xml
==============================================================================
--- head/en_US.ISO8859-1/books/handbook/usb-device-mode/chapter.xml	Tue Sep 29 17:31:03 2020	(r54549)
+++ head/en_US.ISO8859-1/books/handbook/usb-device-mode/chapter.xml	Wed Sep 30 11:29:07 2020	(r54550)
@@ -127,19 +127,19 @@
       <para>To enable USB device mode serial ports, add those lines
 	to <filename>/etc/ttys</filename>:</para>
 
-      <screen>ttyU0	"/usr/libexec/getty 3wire"	vt100	onifconsole secure
-ttyU1	"/usr/libexec/getty 3wire"	vt100	onifconsole secure</screen>
+      <programlisting>ttyU0	"/usr/libexec/getty 3wire"	vt100	onifconsole secure
+ttyU1	"/usr/libexec/getty 3wire"	vt100	onifconsole secure</programlisting>
 
       <para>Then add these lines to
 	<filename>/etc/devd.conf</filename>:</para>
 
-      <screen>notify 100 {
+      <programlisting>notify 100 {
 	match "system"		"DEVFS";
 	match "subsystem"	"CDEV";
 	match "type"		"CREATE";
 	match "cdev"		"ttyU[0-9]+";
 	action "/sbin/init q";
-};</screen>
+};</programlisting>
 
       <para>Reload the configuration if
 	&man.devd.8; is already running:</para>
@@ -175,13 +175,13 @@ hw.usb.template=3</screen>
 
 	<screen>&prompt.root; <userinput>cu -l /dev/ttyU0</userinput></screen>
 
-      <para>After pressing the Enter key a few times you will see
+      <para>After pressing the <keycap>Enter</keycap> key a few times you will see
 	a login prompt.</para>
     </sect2>
 
     <sect2>
       <title>Connecting to USB Device Mode Serial Ports from
-	macOS</title>
+	&macos;</title>
 
       <para>To connect to a board configured to provide USB device
 	mode serial ports, connect the USB host, such as a laptop,
@@ -238,8 +238,8 @@ hw.usb.template=3</screen>
       those lines to <filename>/boot/loader.conf</filename>, creating
       it if it does not already exist:</para>
 
-    <screen>if_cdce_load="YES"
-hw.usb.template=1</screen>
+    <programlisting>if_cdce_load="YES"
+hw.usb.template=1</programlisting>
 
     <para>To load the module and set the template without rebooting
       use:</para>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202009301129.08UBT7FX037758>