summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorTodd T. Fries <todd@cvs.openbsd.org>2000-05-08 21:44:40 +0000
committerTodd T. Fries <todd@cvs.openbsd.org>2000-05-08 21:44:40 +0000
commit48d7c9e99882777516d3c9acdca7e2a41d303027 (patch)
tree5e8f4fa7590d7e43c818e8f37c9176a2e2063033 /etc
parent75b048a4442ba16e158457de44b6ba92a626c79e (diff)
fix dhcp 'NONE' ness from install to allow media parsing to work
.. ok deraadt@, millert@
Diffstat (limited to 'etc')
-rw-r--r--etc/netstart5
1 files changed, 4 insertions, 1 deletions
diff --git a/etc/netstart b/etc/netstart
index ddfc083a77a..caec08caecf 100644
--- a/etc/netstart
+++ b/etc/netstart
@@ -1,6 +1,6 @@
#!/bin/sh -
#
-# $OpenBSD: netstart,v 1.69 2000/04/21 21:27:34 deraadt Exp $
+# $OpenBSD: netstart,v 1.70 2000/05/08 21:44:39 todd Exp $
# Returns true if $1 contains only alphanumerics
isalphanumeric() {
@@ -134,6 +134,9 @@ for hn in /etc/hostname.*; do
cmd="echo ${hn}: bridges now supported via bridgename.* files"
;;
"dhcp")
+ [ "$name" = "NONE" ] && name=
+ [ "$mask" = "NONE" ] && mask=
+ [ "$bcaddr" = "NONE" ] && bcaddr=
ifconfig $if $name $mask $bcaddr $ext1 $ext2 down
cmd="dhclient $if"
;;