From owner-svn-src-head@freebsd.org Tue Sep 11 17:05:27 2018 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 5C4541096E49; Tue, 11 Sep 2018 17:05:27 +0000 (UTC) (envelope-from trasz@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 11A5E7FB7C; Tue, 11 Sep 2018 17:05:27 +0000 (UTC) (envelope-from trasz@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 083EC1AA1D; Tue, 11 Sep 2018 17:05:27 +0000 (UTC) (envelope-from trasz@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w8BH5QQA042894; Tue, 11 Sep 2018 17:05:26 GMT (envelope-from trasz@FreeBSD.org) Received: (from trasz@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w8BH5Qku042892; Tue, 11 Sep 2018 17:05:26 GMT (envelope-from trasz@FreeBSD.org) Message-Id: <201809111705.w8BH5Qku042892@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: trasz set sender to trasz@FreeBSD.org using -f From: Edward Tomasz Napierala Date: Tue, 11 Sep 2018 17:05:26 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r338590 - in head: share/man/man4 usr.sbin/ppp X-SVN-Group: head X-SVN-Commit-Author: trasz X-SVN-Commit-Paths: in head: share/man/man4 usr.sbin/ppp X-SVN-Commit-Revision: 338590 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Sep 2018 17:05:27 -0000 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