[PATCH] ifupdown: run mapping also on ifdown
Richard Genoud
richard.genoud at gmail.com
Wed Jun 18 13:44:31 UTC 2014
ifdown -a
should bring down the interfaces that
ifup -a
has brought up.
With mappings, that's not the case.
Signed-off-by: Richard Genoud <richard.genoud at gmail.com>
---
networking/ifupdown.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/networking/ifupdown.c b/networking/ifupdown.c
index c4a9e8bf3a00..2fb725699bd9 100644
--- a/networking/ifupdown.c
+++ b/networking/ifupdown.c
@@ -1273,7 +1273,7 @@ int ifupdown_main(int argc UNUSED_PARAM, char **argv)
}
#if ENABLE_FEATURE_IFUPDOWN_MAPPING
- if ((cmds == iface_up) && !NO_MAPPINGS) {
+ if (!NO_MAPPINGS) {
struct mapping_defn_t *currmap;
for (currmap = defn->mappings; currmap; currmap = currmap->next) {
--
1.8.5.5
More information about the busybox
mailing list