Module Name: src
Committed By: snj
Date: Sat Sep 23 17:18:44 UTC 2017
Modified Files:
src/share/man/man8 [netbsd-8]: afterboot.8
Log Message:
Pull up following revision(s) (requested by maya in ticket #279):
share/man/man8/afterboot.8: 1.59-1.60
Update packages link. suggest https. bump date
Update wifi guide to reflect dhcpcd no longer invoking wpa_supplicant
To generate a diff of this commit:
cvs rdiff -u -r1.57 -r1.57.4.1 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.57 src/share/man/man8/afterboot.8:1.57.4.1
--- src/share/man/man8/afterboot.8:1.57 Wed Mar 15 11:22:15 2017
+++ src/share/man/man8/afterboot.8 Sat Sep 23 17:18:44 2017
@@ -1,4 +1,4 @@
-.\" $NetBSD: afterboot.8,v 1.57 2017/03/15 11:22:15 wiz Exp $
+.\" $NetBSD: afterboot.8,v 1.57.4.1 2017/09/23 17:18:44 snj 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 March 14, 2017
+.Dd September 10, 2017
.Dt AFTERBOOT 8
.Os
.Sh NAME
@@ -403,21 +403,26 @@ Then, to make the system use it, put the
nameserver 127.0.0.1
.Ed
.Ss Wireless networking
-You may scan for nearby wireless networks using:
+You can 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:
+To connect to a wireless network using WPA and DHCP:
.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
+.Ic wpa_passphrase networkname password > /etc/wpa_supplicant.conf
+.Ic wpa_supplicant -i iwm0 -c /etc/wpa_supplicant.conf &
+.Ic dhcpcd iwm0
.Ed
.Pp
-After creating /etc/wpa_supplicant.conf, using
-.Xr dhcpcd 8
-on the wireless interface will connect to the network.
+To automatically connect at boot, add the following flags to
+.Pa /etc/rc.conf :
+.Pp
+.Dl dhcpcd=YES
+.Dl dhcpcd_flags="-b"
+.Dl wpa_supplicant=YES
+.Dl wpa_supplicant_flags="-i iwm0 -c /etc/wpa_supplicant.conf"
.Ss RPC-based network services
Several services depend on the RPC portmapper
.Xr rpcbind 8
@@ -861,11 +866,11 @@ The
.Nx
packages collection, pkgsrc, includes a large set of third-party software.
A lot of it is available as binary packages that you can download from
-.Lk ftp://ftp.NetBSD.org/pub/NetBSD/packages/
+.Lk https://ftp.netbsd.org/pub/pkgsrc/packages/NetBSD/
or a mirror, and install using
.Xr pkg_add 1 .
See
-.Lk http://www.NetBSD.org/docs/pkgsrc/
+.Lk https://www.NetBSD.org/docs/pkgsrc/
and
.Pa pkgsrc/doc/pkgsrc.txt
for more details.