diff options
author | Ian Darwin <ian@cvs.openbsd.org> | 2008-12-07 14:21:20 +0000 |
---|---|---|
committer | Ian Darwin <ian@cvs.openbsd.org> | 2008-12-07 14:21:20 +0000 |
commit | 2e337f9c11e25ca2db4b76eff16a6138f4e0f829 (patch) | |
tree | 215f55fd0cf29f29b11feeb6ea0e3037047ded74 /usr.sbin/hotplugd/hotplugd.8 | |
parent | 3663b5156ee0514367820c37a8916b20c0023c6c (diff) |
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/hotplugd.8')
-rw-r--r-- | usr.sbin/hotplugd/hotplugd.8 | 12 |
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 |