aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2010-05-21 16:17:08 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2010-05-21 16:17:08 +0000
commitc0bdbd5fba2650e2e40a74cb90031d7aa477ba8e (patch)
tree8cde6d90d75bad1dd5dd53e2f3ad5baf6f6e7967
parentaf73bcd78771a5e9d00cb70793b522a231820985 (diff)
Notes
-rw-r--r--etc/network.subr12
1 files changed, 3 insertions, 9 deletions
diff --git a/etc/network.subr b/etc/network.subr
index 94a8c721659a..b37e44d40366 100644
--- a/etc/network.subr
+++ b/etc/network.subr
@@ -516,7 +516,7 @@ clone_down()
_prefix=
_list=
for ifn in ${cloned_interfaces}; do
- ifconfig ${ifn} destroy
+ ifconfig -n ${ifn} destroy
if [ $? -eq 0 ]; then
_list="${_list}${_prefix}${ifn}"
[ -z "$_prefix" ] && _prefix=' '
@@ -599,10 +599,7 @@ childif_destroy()
if ! ifexists $child; then
continue
fi
- if autoif $child; then
- ifn_stop $child
- fi
- ifconfig $child destroy && cfg=0
+ ifconfig -n $child destroy && cfg=0
done
child_vlans=`get_if_var $ifn vlans_IF`
@@ -613,10 +610,7 @@ childif_destroy()
if ! ifexists $child; then
continue
fi
- if autoif $child; then
- ifn_stop $child
- fi
- ifconfig $child destroy && cfg=0
+ ifconfig -n $child destroy && cfg=0
done
return ${cfg}