Browse Source

fix dhcp 'NONE' ness from install to allow media parsing to work

.. ok deraadt@, millert@
OPENBSD_2_7
todd 24 years ago
parent
commit
5a851dcb3d
1 changed files with 4 additions and 1 deletions
  1. +4
    -1
      src/etc/netstart

+ 4
- 1
src/etc/netstart View File

@ -1,6 +1,6 @@
#!/bin/sh - #!/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 # Returns true if $1 contains only alphanumerics
isalphanumeric() { isalphanumeric() {
@ -134,6 +134,9 @@ for hn in /etc/hostname.*; do
cmd="echo ${hn}: bridges now supported via bridgename.* files" cmd="echo ${hn}: bridges now supported via bridgename.* files"
;; ;;
"dhcp") "dhcp")
[ "$name" = "NONE" ] && name=
[ "$mask" = "NONE" ] && mask=
[ "$bcaddr" = "NONE" ] && bcaddr=
ifconfig $if $name $mask $bcaddr $ext1 $ext2 down ifconfig $if $name $mask $bcaddr $ext1 $ext2 down
cmd="dhclient $if" cmd="dhclient $if"
;; ;;


Loading…
Cancel
Save