|
@ -1,6 +1,6 @@ |
|
|
#!/bin/sh - |
|
|
#!/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) |
|
|
# Strip comments (and leading/trailing whitespace if IFS is set) |
|
|
# from a file and spew to stdout |
|
|
# from a file and spew to stdout |
|
@ -81,14 +81,13 @@ ifstart() { |
|
|
[ "$name" = "NONE" ] && name= |
|
|
[ "$name" = "NONE" ] && name= |
|
|
[ "$mask" = "NONE" ] && mask= |
|
|
[ "$mask" = "NONE" ] && mask= |
|
|
[ "$bcaddr" = "NONE" ] && bcaddr= |
|
|
[ "$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 |
|
|
setgateway=N |
|
|
;; |
|
|
;; |
|
|
"rtsol") |
|
|
"rtsol") |
|
|
ifconfig $if $name $mask $bcaddr $ext1 $ext2 up |
|
|
|
|
|
rtsolif="$rtsolif $if" |
|
|
rtsolif="$rtsolif $if" |
|
|
cmd= |
|
|
|
|
|
|
|
|
cmd="ifconfig $if $name $mask $bcaddr $ext1 $ext2 up" |
|
|
;; |
|
|
;; |
|
|
"up") |
|
|
"up") |
|
|
# The only one of these guaranteed to be set is $if. |
|
|
# The only one of these guaranteed to be set is $if. |
|
|