Add u3g ppp.conf entry. It provides some starting point to making

use of u3g(4) dongles, and in many cases can work out of the box.

Reviewed by:	hselasky
Approved by:	re (gjb)
MFC after:	2 weeks
Differential Revision:	https://reviews.freebsd.org/D16974
This commit is contained in:
Edward Tomasz Napierala 2018-09-11 17:05:26 +00:00
parent 112adef8ca
commit 94df44ee6c
2 changed files with 14 additions and 1 deletions

View File

@ -18,7 +18,7 @@
.\"
.\" $FreeBSD$
.\"
.Dd April 26, 2017
.Dd September 11, 2018
.Dt U3G 4
.Os
.Sh NAME
@ -111,12 +111,18 @@ for callout ports
.It Pa /dev/cuaU*.*.lock
corresponding callout initial-state and lock-state devices
.El
.Sh EXAMPLES
Connect to the Internet using the default configuration:
.Bd -literal -offset indent
ppp -background u3g
.Ed
.Sh SEE ALSO
.Xr tty 4 ,
.Xr ucom 4 ,
.Xr usb 4 ,
.Xr usb_quirk 4 ,
.Xr devd 8 ,
.Xr ppp 8 ,
.Xr usbconfig 8
.Sh HISTORY
The

View File

@ -35,3 +35,10 @@ papchap:
set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0 0.0.0.0
add default HISADDR # Add a (sticky) default route
u3g:
set device /dev/cuaU0.0
set phone *99\#
set timeout 0
set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0 0.0.0.0
add default HISADDR # Add a (sticky) default route