ifplugd: if SIOCSIFFLAGS fails with EADDRNOTAVAIL, don't die
[oweals/busybox.git] / networking / ifplugd.c
index 9bc1a075f51bcfeb201ddc4e29a791252e4d622f..5059eaf73a1dbaca77f16d447569b1b542dff13b 100644 (file)
@@ -367,7 +367,7 @@ static void up_iface(void)
                /* Let user know we mess up with interface */
                bb_error_msg("upping interface");
                if (network_ioctl(SIOCSIFFLAGS, &ifrequest, "setting interface flags") < 0) {
-                       if (errno != ENODEV)
+                       if (errno != ENODEV && errno != EADDRNOTAVAIL)
                                xfunc_die();
                        G.iface_exists = 0;
                        return;