summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorIan Darwin <ian@cvs.openbsd.org>2008-11-06 09:16:26 +0000
committerIan Darwin <ian@cvs.openbsd.org>2008-11-06 09:16:26 +0000
commit41f41436a0b61a800cc2d0789e064438bab75e5f (patch)
tree1bb3da080024952b5a8689bd8bdad7c02e806789 /usr.sbin
parent0bf45ed6ead583706ec5459a405edbdfaeb90ced (diff)
More complete example, for e.g., usb devices that need wep/wpa keys.
OK (with typo corrected) sthen@
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/hotplugd/hotplugd.812
1 files changed, 8 insertions, 4 deletions
diff --git a/usr.sbin/hotplugd/hotplugd.8 b/usr.sbin/hotplugd/hotplugd.8
index 48cfb161797..e601162a717 100644
--- a/usr.sbin/hotplugd/hotplugd.8
+++ b/usr.sbin/hotplugd/hotplugd.8
@@ -1,4 +1,4 @@
-.\" $OpenBSD: hotplugd.8,v 1.6 2007/05/31 19:20:24 jmc Exp $
+.\" $OpenBSD: hotplugd.8,v 1.7 2008/11/06 09:16:25 ian Exp $
.\"
.\" Copyright (c) 2004 Alexander Yurchenko <grange@openbsd.org>
.\"
@@ -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: May 31 2007 $
+.Dd $Mdocdate: November 6 2008 $
.Dt HOTPLUGD 8
.Os
.Sh NAME
@@ -110,9 +110,13 @@ case $DEVCLASS in
;;
3)
- # network devices
+ # network devices; use hostname.if if found, else dhclient.
- /sbin/dhclient $DEVNAME
+ if [ -f /etc/hostname.$DEVNAME ]; then
+ sh /etc/netstart $DEVNAME
+ else
+ /sbin/dhclient $DEVNAME
+ fi
;;
esac