From 1df9b91c6495ab60a285481abe4d5bd44ea9d9aa Mon Sep 17 00:00:00 2001 From: ian Date: Sun, 7 Dec 2008 14:21:19 +0000 Subject: Change example to run /etc/netstart always (secure by default). Cluestick courtesy of deraadt@, discussed with todd@, mbalmer@, ok ray@. --- usr.sbin/hotplugd/hotplugd.8 | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'usr.sbin/hotplugd') 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 .\" @@ -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 -- cgit v1.2.3-59-g8ed1b