Module Name: src Committed By: maya Date: Sun Sep 10 19:08:18 UTC 2017
Modified Files: src/share/man/man8: afterboot.8 Log Message: Update wifi guide to reflect dhcpcd no longer invoking wpa_supplicant To generate a diff of this commit: cvs rdiff -u -r1.59 -r1.60 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.59 src/share/man/man8/afterboot.8:1.60 --- src/share/man/man8/afterboot.8:1.59 Fri Jul 21 12:48:01 2017 +++ src/share/man/man8/afterboot.8 Sun Sep 10 19:08:17 2017 @@ -1,4 +1,4 @@ -.\" $NetBSD: afterboot.8,v 1.59 2017/07/21 12:48:01 maya Exp $ +.\" $NetBSD: afterboot.8,v 1.60 2017/09/10 19:08:17 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, m...@umn.edu @@ -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 July 21, 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