aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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