View | Details | Raw Unified | Return to bug 21096
Collapse All | Expand All

(-)ifdown-removable.orig (+14 lines)
Lines 85-90 Link Here
85
	}
85
	}
86
fi
86
fi
87
87
88
# get ipv4 and/or ipv6 addresses of the interface. get them in any way
89
# (interface can be "down", but has addresses)
90
is_yes "$CONFIG_IPV4" && SourceIfNotEmpty $SCRIPTDIR/functions-ipv4 && IPV4ADDRESS="$(get_ipv4_addresses $NAME)"
91
is_yes "$CONFIG_IPV6" && SourceIfNotEmpty $SCRIPTDIR/functions-ipv6 && IPV6ADDRESS="$(get_ipv6_addresses $NAME)"
92
93
# stop QoS and FireWall before iproute2 rules stop
94
is_yes "$CONFIG_QOS"  && $SCRIPTDIR/config-qos $NAME stop "${IPV4ADDRESS[*]}" "${IPV6ADDRESS[*]}"
95
is_yes "$CONFIG_FW"  && $SCRIPTDIR/config-fw $NAME stop "${IPV4ADDRESS[*]}" "${IPV6ADDRESS[*]}"
96
97
# ifup-common reverse order
98
is_yes "$CONFIG_IPX"  && $SCRIPTDIR/config-ipx $NAME stop
99
is_yes "$CONFIG_IPV6" && $SCRIPTDIR/config-ipv6 $NAME stop "${IPV4ADDRESS[*]}" "${IPV6ADDRESS[*]}"
100
is_yes "$CONFIG_IPV4" && $SCRIPTDIR/config-ipv4 $NAME stop "${IPV4ADDRESS[*]}" "${IPV6ADDRESS[*]}"
101
88
# common part
102
# common part
89
is_yes "$IFDOWN_CHILDREN" && ifdown_children
103
is_yes "$IFDOWN_CHILDREN" && ifdown_children
90
xargise_file $MYIFACEDIR/ipneigh "$IP neigh del dev $NAME"
104
xargise_file $MYIFACEDIR/ipneigh "$IP neigh del dev $NAME"

Return to bug 21096