summaryrefslogtreecommitdiff
path: root/share/man/man4/run.4
diff options
context:
space:
mode:
authorJason McIntyre <jmc@cvs.openbsd.org>2013-02-14 07:40:43 +0000
committerJason McIntyre <jmc@cvs.openbsd.org>2013-02-14 07:40:43 +0000
commitf6b44f2e225858fe41e2ba0a24fc8db62615fabc (patch)
tree3767223f16183562ff872d892d4f936748f10fb3 /share/man/man4/run.4
parentfdcee7929c4e2374d330d78a6ca7b3cc56bc22ee (diff)
rework EXAMPLES somewhat, and remove the obsolete NONE NONE NONE dhcp
stuff; ok krw
Diffstat (limited to 'share/man/man4/run.4')
-rw-r--r--share/man/man4/run.435
1 files changed, 14 insertions, 21 deletions
diff --git a/share/man/man4/run.4 b/share/man/man4/run.4
index fb5aaad382e..464ff3f5c0d 100644
--- a/share/man/man4/run.4
+++ b/share/man/man4/run.4
@@ -1,4 +1,4 @@
-.\" $OpenBSD: run.4,v 1.35 2012/08/12 17:01:35 schwarze Exp $
+.\" $OpenBSD: run.4,v 1.36 2013/02/14 07:40:42 jmc Exp $
.\"
.\" Copyright (c) 2008 Damien Bergamini <damien.bergamini@free.fr>
.\"
@@ -14,7 +14,7 @@
.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
.\"
-.Dd $Mdocdate: August 12 2012 $
+.Dd $Mdocdate: February 14 2013 $
.Dt RUN 4
.Os
.Sh NAME
@@ -155,28 +155,21 @@ The following adapters should work:
.It ZyXEL NWD270N
.El
.Sh EXAMPLES
-The following
-.Xr hostname.if 5
-example configures run0 to join whatever network is available on boot,
-using WEP key
-.Dq 0x1deadbeef1 ,
-channel 11, obtaining an IP address using DHCP:
-.Bd -literal -offset indent
-dhcp NONE NONE NONE nwkey 0x1deadbeef1 chan 11
-.Ed
+The following example scans for available networks:
.Pp
-Configure run0 to join network
-.Dq my_net
-using WPA with passphrase
-.Dq my_passphrase :
-.Bd -literal -offset indent
-# ifconfig run0 nwid my_net wpakey my_passphrase
-.Ed
+.Dl # ifconfig run0 scan
.Pp
-Join an existing BSS network,
-.Dq my_net :
+The following
+.Xr hostname.if 5
+example configures run0 to join network
+.Dq mynwid ,
+using WPA key
+.Dq mywpakey ,
+obtaining an IP address using DHCP:
.Bd -literal -offset indent
-# ifconfig run0 192.168.1.1 netmask 0xffffff00 nwid my_net
+nwid mynwid
+wpakey mywpakey
+dhcp
.Ed
.Sh DIAGNOSTICS
.Bl -diag