From 21521a3c01a40262a142c18de745d7ddc0758e65 Mon Sep 17 00:00:00 2001 From: nia Date: Sat, 15 Aug 2020 13:25:14 +0000 Subject: [PATCH] afterboot.8: Explain how connecting to open WiFi works with wpa_supplicant --- share/man/man8/afterboot.8 | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/share/man/man8/afterboot.8 b/share/man/man8/afterboot.8 index c7b8a66dd660..5df06303c0c1 100644 --- a/share/man/man8/afterboot.8 +++ b/share/man/man8/afterboot.8 @@ -1,4 +1,4 @@ -.\" $NetBSD: afterboot.8,v 1.62 2019/06/18 23:11:05 nia Exp $ +.\" $NetBSD: afterboot.8,v 1.63 2020/08/15 13:25:14 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 @@ -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 June 18, 2019 +.Dd August 15, 2020 .Dt AFTERBOOT 8 .Os .Sh NAME @@ -416,6 +416,18 @@ To connect to a wireless network using WPA and DHCP: .Ic service dhcpcd onestart .Ed .Pp +To connect to an open wireless network with no password, edit +.Pa /etc/wpa_supplicant.conf +instead of using +.Xr wpa_passphrase 8 : +.Bd -literal -offset indent +network={ + ssid="Public-WiFi" + key_mgmt=NONE + priority=100 +} +.Ed +.Pp To automatically connect at boot, add the following to .Pa /etc/rc.conf : .Pp