Source-Changes-HG archive

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

[src/trunk]: src/share/man/man8 Update wifi guide to reflect dhcpcd no longer...



details:   https://anonhg.NetBSD.org/src/rev/10931678fe38
branches:  trunk
changeset: 826529:10931678fe38
user:      maya <maya%NetBSD.org@localhost>
date:      Sun Sep 10 19:08:17 2017 +0000

description:
Update wifi guide to reflect dhcpcd no longer invoking wpa_supplicant

diffstat:

 share/man/man8/afterboot.8 |  23 ++++++++++++++---------
 1 files changed, 14 insertions(+), 9 deletions(-)

diffs (52 lines):

diff -r 495578e127a8 -r 10931678fe38 share/man/man8/afterboot.8
--- a/share/man/man8/afterboot.8        Sun Sep 10 18:40:27 2017 +0000
+++ b/share/man/man8/afterboot.8        Sun Sep 10 19:08:17 2017 +0000
@@ -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, 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 July 21, 2017
+.Dd September 10, 2017
 .Dt AFTERBOOT 8
 .Os
 .Sh NAME
@@ -403,21 +403,26 @@
 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



Home | Main Index | Thread Index | Old Index