diff options
author | 2000-05-08 21:44:39 +0000 | |
---|---|---|
committer | 2000-05-08 21:44:39 +0000 | |
commit | e5694912cb0787174678b05de8a7fd17b75f1b50 (patch) | |
tree | 0612695234d03909a46842d835613f0d9bb1b19d | |
parent | If there are no CD devices, abort early. (diff) | |
download | wireguard-openbsd-e5694912cb0787174678b05de8a7fd17b75f1b50.tar.xz wireguard-openbsd-e5694912cb0787174678b05de8a7fd17b75f1b50.zip |
fix dhcp 'NONE' ness from install to allow media parsing to work
.. ok deraadt@, millert@
-rw-r--r-- | etc/netstart | 5 |
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" ;; |