summaryrefslogtreecommitdiff
path: root/sbin/ifconfig
diff options
context:
space:
mode:
authorBret Lambert <blambert@cvs.openbsd.org>2009-02-15 17:33:14 +0000
committerBret Lambert <blambert@cvs.openbsd.org>2009-02-15 17:33:14 +0000
commit62716f7ee90b216c391f4d27442ee0279eb54574 (patch)
tree86a37eb8a4259a6ccf6a55a30e8e675ea8768f8d /sbin/ifconfig
parent694d3b25edcce3b25364d1d073f338dd6ac0b4d9 (diff)
Give an example of how to use wpa-psk(8) to connect to WPA
networks in the wpapsk section of the page. ok deraadt@ henning@
Diffstat (limited to 'sbin/ifconfig')
-rw-r--r--sbin/ifconfig/ifconfig.88
1 files changed, 6 insertions, 2 deletions
diff --git a/sbin/ifconfig/ifconfig.8 b/sbin/ifconfig/ifconfig.8
index 4c1fd92c062..9fea2faba71 100644
--- a/sbin/ifconfig/ifconfig.8
+++ b/sbin/ifconfig/ifconfig.8
@@ -1,4 +1,4 @@
-.\" $OpenBSD: ifconfig.8,v 1.175 2009/02/15 08:34:36 damien Exp $
+.\" $OpenBSD: ifconfig.8,v 1.176 2009/02/15 17:33:13 blambert Exp $
.\" $NetBSD: ifconfig.8,v 1.11 1996/01/04 21:27:29 pk Exp $
.\" $FreeBSD: ifconfig.8,v 1.16 1998/02/01 07:03:29 steve Exp $
.\"
@@ -797,7 +797,11 @@ authentication is allowed using the
.Cm wpaakms
option.
Pre-shared keys can be generated from passphrases using
-.Xr wpa-psk 8 .
+.Xr wpa-psk 8 ,
+as in the following example, which sets interface wpi0 to use WPA with SSID
+\&"wlan\&" and passphrase \&"supersecret\&":
+.Pp
+.Dl # ifconfig wpi0 wpa wpapsk `wpa-psk wlan supersecret`
.It Fl wpapsk
Delete the pre-shared key.
This will prevent