aboutsummaryrefslogtreecommitdiff
path: root/init.d/net.lo.in
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2009-05-29 15:23:23 +0100
committerRoy Marples <roy@marples.name>2009-05-29 15:23:23 +0100
commit60134ddec5fe19bc14bf0fa10d963e5f1812d586 (patch)
tree4578fcd4447b9a64a7b460c546d50b3e3fc623a6 /init.d/net.lo.in
parent83e82c452e89bf27de2a7b01bc2356c9050b2a18 (diff)
Only delete addresses for interfaces that exist.
Diffstat (limited to 'init.d/net.lo.in')
-rw-r--r--init.d/net.lo.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/init.d/net.lo.in b/init.d/net.lo.in
index 5c7f43aa..b55da47f 100644
--- a/init.d/net.lo.in
+++ b/init.d/net.lo.in
@@ -682,8 +682,8 @@ stop()
fi
done
- # Only delete addresses for non PPP interfaces
- if ! [ "$(command -v is_ppp)" = "is_ppp" ] || ! is_ppp; then
+ # Only delete addresses for interfaces that exist
+ if _exists; then
_delete_addresses "${IFACE}"
fi