Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/share/man/man8 document the current easiest way to use WPA f...



details:   https://anonhg.NetBSD.org/src/rev/74a6473e6107
branches:  trunk
changeset: 822333:74a6473e6107
user:      maya <maya%NetBSD.org@localhost>
date:      Tue Mar 14 11:42:06 2017 +0000

description:
document the current easiest way to use WPA for wireless networking.
don't have my laptop here and going by memory so it may be slightly wrong.

diffstat:

 share/man/man8/afterboot.8 |  22 ++++++++++++++++++++--
 1 files changed, 20 insertions(+), 2 deletions(-)

diffs (50 lines):

diff -r 121c4a06b2ae -r 74a6473e6107 share/man/man8/afterboot.8
--- a/share/man/man8/afterboot.8        Tue Mar 14 09:39:28 2017 +0000
+++ b/share/man/man8/afterboot.8        Tue Mar 14 11:42:06 2017 +0000
@@ -1,4 +1,4 @@
-.\"    $NetBSD: afterboot.8,v 1.54 2017/02/18 05:38:40 riastradh Exp $
+.\"    $NetBSD: afterboot.8,v 1.55 2017/03/14 11:42:06 maya Exp $
 .\"    $OpenBSD: afterboot.8,v 1.72 2002/02/22 02:02:33 miod Exp $
 .\"
 .\" Originally created by Marshall M. Midden -- 1997-10-20, m4%umn.edu@localhost
@@ -59,7 +59,7 @@
 .\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
 .\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 .\"
-.Dd December 17, 2016
+.Dd March 14, 2017
 .Dt AFTERBOOT 8
 .Os
 .Sh NAME
@@ -402,6 +402,22 @@
 .Bd -literal -offset indent
 nameserver 127.0.0.1
 .Ed
+.Ss Wireless networking
+You may scan for nearby wireless networks using:
+.Bd -literal -offset indent
+.Ic ifconfig iwm0 up list scan
+.Ic ifconfig iwm0 down
+.Ed
+.Pp
+To connect to a network using WPA, you may use:
+.Bd -literal -offset indent
+.Ic echo ctrl_interface=/var/run/wpa_supplicant > /etc/wpa_supplicant.conf
+.Ic wpa_passphrase networkname password >> /etc/wpa_supplicant.conf
+.Ed
+.Pp
+After creating /etc/wpa_supplicant.conf, using
+.Xr dhcpcd 8
+on the wireless interface will connect to the network.
 .Ss RPC-based network services
 Several services depend on the RPC portmapper
 .Xr rpcbind 8
@@ -1025,6 +1041,8 @@
 .Xr umount 8 ,
 .Xr useradd 8 ,
 .Xr vipw 8 ,
+.Xr wpa_supplicant 8 ,
+.Xr wpa_supplicant.conf 8 ,
 .Xr yp 8 ,
 .Xr ypbind 8
 .Sh HISTORY



Home | Main Index | Thread Index | Old Index