blob: 839a8a2fb4e64e6638b5f673b436cb7a61b7fe10 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#
# This patch is found here:
# http://lists.busybox.net/pipermail/busybox/2018-March/086328.html
# Basically ifplugd will not stay up if the driver is loading.
# This is particularly apparent with gadget.
diff -arNu a/networking/ifplugd.c b/networking/ifplugd.c
--- a/networking/ifplugd.c 2019-05-28 18:11:43.836982315 -0500
+++ b/networking/ifplugd.c 2019-05-28 18:13:13.088979672 -0500
@@ -358,8 +358,10 @@
ifrequest.ifr_flags |= IFF_UP;
/* Let user know we mess up with interface */
bb_error_msg("upping interface");
- if (network_ioctl(SIOCSIFFLAGS, &ifrequest, "setting interface flags") < 0)
+ if (network_ioctl(SIOCSIFFLAGS, &ifrequest, "setting interface flags") < 0) {
+ if (errno != ENODEV && errno != EADDRNOTAVAIL)
xfunc_die();
+ }
}
#if 0 /* why do we mess with IP addr? It's not our business */
|