diff options
author | Roy Marples <roy@marples.name> | 2009-05-29 15:23:23 +0100 |
---|---|---|
committer | Roy Marples <roy@marples.name> | 2009-05-29 15:23:23 +0100 |
commit | 60134ddec5fe19bc14bf0fa10d963e5f1812d586 (patch) | |
tree | 4578fcd4447b9a64a7b460c546d50b3e3fc623a6 /init.d | |
parent | 83e82c452e89bf27de2a7b01bc2356c9050b2a18 (diff) |
Only delete addresses for interfaces that exist.
Diffstat (limited to 'init.d')
-rw-r--r-- | init.d/net.lo.in | 4 |
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 |