From 60134ddec5fe19bc14bf0fa10d963e5f1812d586 Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Fri, 29 May 2009 15:23:23 +0100 Subject: Only delete addresses for interfaces that exist. --- init.d/net.lo.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'init.d/net.lo.in') 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 -- cgit v1.2.3