summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorclaudio <claudio@openbsd.org>2014-09-28 12:58:02 +0000
committerclaudio <claudio@openbsd.org>2014-09-28 12:58:02 +0000
commit5141b41f0fc4cfddd146b168c68d6b38c71b4c1c (patch)
tree9655dd793d10cdd94750ba34b8b75b003d12245a
parentX509v3_add_ext(): do not free stuff we did not allocate in the error path. (diff)
downloadwireguard-openbsd-5141b41f0fc4cfddd146b168c68d6b38c71b4c1c.tar.xz
wireguard-openbsd-5141b41f0fc4cfddd146b168c68d6b38c71b4c1c.zip
Revert 1.142. Without the down netstart will just print the ifconfig
output because it may end up just calling 'ifconfig $if'. This needs to be done better and properly tested.
-rw-r--r--etc/netstart4
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/netstart b/etc/netstart
index 26bdb360827..6fa4d933034 100644
--- a/etc/netstart
+++ b/etc/netstart
@@ -1,6 +1,6 @@
#!/bin/sh -
#
-# $OpenBSD: netstart,v 1.142 2014/09/26 15:18:01 halex Exp $
+# $OpenBSD: netstart,v 1.143 2014/09/28 12:58:02 claudio Exp $
# Strip comments (and leading/trailing whitespace if IFS is set)
# from a file and spew to stdout
@@ -63,7 +63,7 @@ ifstart() {
[ "$name" = "NONE" ] && name=
[ "$mask" = "NONE" ] && mask=
[ "$bcaddr" = "NONE" ] && bcaddr=
- cmd="ifconfig $if $name $mask $bcaddr $ext1 $ext2"
+ cmd="ifconfig $if $name $mask $bcaddr $ext1 $ext2 down"
cmd="$cmd;dhclient $if"
dhcpif="$dhcpif $if"
;;