|
@ -1,6 +1,6 @@ |
|
|
#!/bin/sh - |
|
|
#!/bin/sh - |
|
|
# |
|
|
# |
|
|
# $OpenBSD: netstart,v 1.138 2013/03/20 15:26:28 todd Exp $ |
|
|
|
|
|
|
|
|
# $OpenBSD: netstart,v 1.139 2013/08/22 07:53:11 mpi 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 |
|
@ -103,7 +103,6 @@ ifstart() { |
|
|
if [ "$bcaddr" -a "X$bcaddr" != "XNONE" ]; then |
|
|
if [ "$bcaddr" -a "X$bcaddr" != "XNONE" ]; then |
|
|
cmd="$cmd broadcast $bcaddr" |
|
|
cmd="$cmd broadcast $bcaddr" |
|
|
fi |
|
|
fi |
|
|
[ "$alias" ] && rtcmd=";route -qn add -host $name 127.0.0.1" |
|
|
|
|
|
;; |
|
|
;; |
|
|
inet6) |
|
|
inet6) |
|
|
if [ ! -n "$name" ]; then |
|
|
if [ ! -n "$name" ]; then |
|
@ -117,7 +116,7 @@ ifstart() { |
|
|
cmd="$cmd $mask $bcaddr" |
|
|
cmd="$cmd $mask $bcaddr" |
|
|
;; |
|
|
;; |
|
|
esac |
|
|
esac |
|
|
cmd="$cmd $ext1 $ext2$rtcmd" rtcmd= |
|
|
|
|
|
|
|
|
cmd="$cmd $ext1 $ext2" |
|
|
;; |
|
|
;; |
|
|
esac |
|
|
esac |
|
|
eval "$cmd" |
|
|
eval "$cmd" |
|
|