summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEd Wildgoose <gentoo@wildgooses.com>2011-03-21 23:49:40 -0500
committerWilliam Hubbs <williamh@gentoo.org>2011-03-21 23:55:55 -0500
commit60d8d4f5bbdfc3e91ed4adce0ee1315e1bdf47b6 (patch)
tree8e33a82e6c1d2870d6b3b7e42798db927963a30b
parentc9912942f0f4c2c150d81ed212a700b3508f0ab0 (diff)
downloadopenrc-60d8d4f5bbdfc3e91ed4adce0ee1315e1bdf47b6.tar.gz
openrc-60d8d4f5bbdfc3e91ed4adce0ee1315e1bdf47b6.tar.bz2
openrc-60d8d4f5bbdfc3e91ed4adce0ee1315e1bdf47b6.tar.xz
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
-rw-r--r--init.d/net.lo.in6
1 files changed, 5 insertions, 1 deletions
diff --git a/init.d/net.lo.in b/init.d/net.lo.in
index b194a23..822e3f5 100644
--- a/init.d/net.lo.in
+++ b/init.d/net.lo.in
@@ -684,7 +684,11 @@ stop()
# Only delete addresses for interfaces that exist
if _exists; then
- _delete_addresses "${IFACE}"
+ # 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