do not delete addresses when stopping a ppp interface.

This is important in situations where ppp is being used in a demand
dialing setup.

X-Gentoo-Bug: 359069
X-Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?id=359069
This commit is contained in:
Ed Wildgoose 2011-03-21 23:49:40 -05:00 committed by William Hubbs
parent c9912942f0
commit 60d8d4f5bb

View File

@ -684,8 +684,12 @@ stop()
# Only delete addresses for interfaces that exist
if _exists; then
# PPP can manage it's own addresses when IN_BACKGROUND
# Important in case "demand" set on the ppp link
if ! (yesno ${IN_BACKGROUND} && is_ppp) ; then
_delete_addresses "${IFACE}"
fi
fi
for module in ${MODULES}; do
if [ "$(command -v "${module}_post_stop")" = "${module}_post_stop" ]; then