From 5312d4af65e01e528c1b4453bb05c2de3570c252 Mon Sep 17 00:00:00 2001 From: nia Date: Mon, 24 Aug 2020 12:35:48 +0000 Subject: [PATCH] afterboot.8: Start the daemons after configuring wpa_supplicant. --- share/man/man8/afterboot.8 | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/share/man/man8/afterboot.8 b/share/man/man8/afterboot.8 index b871e4324a78..bf3d9e5a722a 100644 --- a/share/man/man8/afterboot.8 +++ b/share/man/man8/afterboot.8 @@ -1,4 +1,4 @@ -.\" $NetBSD: afterboot.8,v 1.70 2020/08/24 12:29:30 nia Exp $ +.\" $NetBSD: afterboot.8,v 1.71 2020/08/24 12:35:48 nia 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 @@ -431,14 +431,14 @@ Then, to make the system use it, put the following in nameserver 127.0.0.1 .Ed .Ss Wireless networking -To connect to a wireless network using WPA and DHCP: +To configure the system to connect to a wireless network with a password +using WPA: .Bd -literal -offset indent .Ic wpa_passphrase networkname password >> /etc/wpa_supplicant.conf -.Ic service wpa_supplicant onestart -.Ic service dhcpcd onestart .Ed .Pp -To connect to an open wireless network with no password, edit +To to configure the system to connect to an open wireless network with +no password, edit .Pa /etc/wpa_supplicant.conf instead of using .Xr wpa_passphrase 8 : @@ -450,6 +450,12 @@ network={ } .Ed .Pp +Then start the necessary daemons: +.Bd -literal -offset indent +.Ic service wpa_supplicant onestart +.Ic service dhcpcd onestart +.Ed +.Pp To automatically connect at boot, add the following to .Pa /etc/rc.conf : .Pp @@ -458,7 +464,7 @@ To automatically connect at boot, add the following to .Pp While using .Xr wpa_supplicant 8 , -you can easily retrieve network scan with +you can easily retrieve network scan results with .Xr wpa_cli 8 : .Bd -literal -offset indent .Ic wpa_cli scan_results