Browse Source

use eval consistently, fixes description quotes on rtsol and dhcp

fix inspired by and closes pr 4495
ok krw@
OPENBSD_3_9
todd 19 years ago
parent
commit
ab12acee53
1 changed files with 4 additions and 5 deletions
  1. +4
    -5
      src/etc/netstart

+ 4
- 5
src/etc/netstart View File

@ -1,6 +1,6 @@
#!/bin/sh -
#
# $OpenBSD: netstart,v 1.105 2005/05/22 08:56:08 todd Exp $
# $OpenBSD: netstart,v 1.106 2005/09/28 17:40:30 todd Exp $
# Strip comments (and leading/trailing whitespace if IFS is set)
# from a file and spew to stdout
@ -81,14 +81,13 @@ ifstart() {
[ "$name" = "NONE" ] && name=
[ "$mask" = "NONE" ] && mask=
[ "$bcaddr" = "NONE" ] && bcaddr=
ifconfig $if $name $mask $bcaddr $ext1 $ext2 down
cmd="dhclient $if"
cmd="ifconfig $if $name $mask $bcaddr $ext1 $ext2 down"
cmd="$cmd;dhclient $if"
setgateway=N
;;
"rtsol")
ifconfig $if $name $mask $bcaddr $ext1 $ext2 up
rtsolif="$rtsolif $if"
cmd=
cmd="ifconfig $if $name $mask $bcaddr $ext1 $ext2 up"
;;
"up")
# The only one of these guaranteed to be set is $if.


Loading…
Cancel
Save