Module Name: src
Committed By: maya
Date: Tue Mar 14 11:42:06 UTC 2017
Modified Files:
src/share/man/man8: afterboot.8
Log Message:
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.
To generate a diff of this commit:
cvs rdiff -u -r1.54 -r1.55 src/share/man/man8/afterboot.8
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/share/man/man8/afterboot.8
diff -u src/share/man/man8/afterboot.8:1.54 src/share/man/man8/afterboot.8:1.55
--- src/share/man/man8/afterboot.8:1.54 Sat Feb 18 05:38:40 2017
+++ src/share/man/man8/afterboot.8 Tue Mar 14 11:42:06 2017
@@ -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, [email protected]
@@ -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 @@ Then, to make the system use it, put the
.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 @@ for details on how to do so.
.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