From 79faa2ca696bc7aa11ed7e5d12067ae0eed9bc38 Mon Sep 17 00:00:00 2001 From: jmc Date: Mon, 15 Apr 2024 06:12:46 +0000 Subject: [PATCH] add an EXAMPLES section with a simple config file, similar to the wireless pages; started by a request from julian huhn, and adapted from a diff from gerhard; feedback claudio kevlo sthen gerhard ok kevlo --- share/man/man4/umb.4 | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/share/man/man4/umb.4 b/share/man/man4/umb.4 index f7c8e00eeec..c51a1134677 100644 --- a/share/man/man4/umb.4 +++ b/share/man/man4/umb.4 @@ -1,4 +1,4 @@ -.\" $OpenBSD: umb.4,v 1.17 2024/01/01 13:04:35 kevlo Exp $ +.\" $OpenBSD: umb.4,v 1.18 2024/04/15 06:12:46 jmc Exp $ .\" .\" Copyright (c) 2016 genua mbH .\" @@ -14,7 +14,7 @@ .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. .\" -.Dd $Mdocdate: January 1 2024 $ +.Dd $Mdocdate: April 15 2024 $ .Dt UMB 4 .Os .Sh NAME @@ -64,6 +64,19 @@ The following devices should work: .It Sierra Wireless EM8805 .It Sierra Wireless MC8305 .El +.Sh EXAMPLES +The following +.Xr hostname.if 5 +example configures umb0 to set the APN to +.Dq internet , +enabling data roaming, +and obtaining an IP address using IPv6 stateless address autoconfiguration: +.Bd -literal -offset indent +pin 1234 +apn internet +inet6 autoconf +roaming +.Ed .Sh SEE ALSO .Xr intro 4 , .Xr netintro 4 , -- 2.20.1