summaryrefslogtreecommitdiff
path: root/init.d
diff options
context:
space:
mode:
Diffstat (limited to 'init.d')
-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 5c7f43a..b55da47 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