summaryrefslogtreecommitdiffstats
path: root/usr.sbin/hotplugd
diff options
context:
space:
mode:
authorian <ian@openbsd.org>2008-12-07 14:21:19 +0000
committerian <ian@openbsd.org>2008-12-07 14:21:19 +0000
commit1df9b91c6495ab60a285481abe4d5bd44ea9d9aa (patch)
treea533af2eb477494ff36aacb94ebb3bb5f7a40f0b /usr.sbin/hotplugd
parentDocument that ethers_aton returns NULL for invalid addresses. (diff)
downloadwireguard-openbsd-1df9b91c6495ab60a285481abe4d5bd44ea9d9aa.tar.xz
wireguard-openbsd-1df9b91c6495ab60a285481abe4d5bd44ea9d9aa.zip
Change example to run /etc/netstart always (secure by default).
Cluestick courtesy of deraadt@, discussed with todd@, mbalmer@, ok ray@.
Diffstat (limited to 'usr.sbin/hotplugd')
-rw-r--r--usr.sbin/hotplugd/hotplugd.812
1 files changed, 4 insertions, 8 deletions
diff --git a/usr.sbin/hotplugd/hotplugd.8 b/usr.sbin/hotplugd/hotplugd.8
index 9733c69e3c2..4be35d4baae 100644
--- a/usr.sbin/hotplugd/hotplugd.8
+++ b/usr.sbin/hotplugd/hotplugd.8
@@ -1,4 +1,4 @@
-.\" $OpenBSD: hotplugd.8,v 1.8 2008/11/06 11:19:24 sobrado Exp $
+.\" $OpenBSD: hotplugd.8,v 1.9 2008/12/07 14:21:19 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: November 6 2008 $
+.Dd $Mdocdate: December 7 2008 $
.Dt HOTPLUGD 8
.Os
.Sh NAME
@@ -108,12 +108,8 @@ case $DEVCLASS in
esac
;;
3)
- # network devices; use hostname.if if found, else dhclient.
- if [ -f /etc/hostname.$DEVNAME ]; then
- sh /etc/netstart $DEVNAME
- else
- /sbin/dhclient $DEVNAME
- fi
+ # network devices; requires hostname.$DEVNAME
+ sh /etc/netstart $DEVNAME
;;
esac
.Ed