summaryrefslogtreecommitdiff
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
parent83e82c452e89bf27de2a7b01bc2356c9050b2a18 (diff)
downloadopenrc-60134ddec5fe19bc14bf0fa10d963e5f1812d586.tar.gz
openrc-60134ddec5fe19bc14bf0fa10d963e5f1812d586.tar.bz2
openrc-60134ddec5fe19bc14bf0fa10d963e5f1812d586.tar.xz
Only delete addresses for interfaces that exist.
-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