Author: trasz
Date: Tue Sep 11 17:05:26 2018
New Revision: 338590
URL: https://svnweb.freebsd.org/changeset/base/338590

Log:
  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

Modified:
  head/share/man/man4/u3g.4
  head/usr.sbin/ppp/ppp.conf

Modified: head/share/man/man4/u3g.4
==============================================================================
--- head/share/man/man4/u3g.4   Tue Sep 11 16:46:28 2018        (r338589)
+++ head/share/man/man4/u3g.4   Tue Sep 11 17:05:26 2018        (r338590)
@@ -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

Modified: head/usr.sbin/ppp/ppp.conf
==============================================================================
--- head/usr.sbin/ppp/ppp.conf  Tue Sep 11 16:46:28 2018        (r338589)
+++ head/usr.sbin/ppp/ppp.conf  Tue Sep 11 17:05:26 2018        (r338590)
@@ -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
_______________________________________________
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