diff options
author | John Klug <john.klug@multitech.com> | 2019-06-18 16:49:59 -0500 |
---|---|---|
committer | John Klug <john.klug@multitech.com> | 2019-06-18 16:49:59 -0500 |
commit | 86ffd0b6a1796a4be5492d05fc7d9596bac1a1a3 (patch) | |
tree | 3528bac579fea80a04dad3147c17bdbf4763f654 /recipes-core/busybox/files/ifplugd.patch | |
parent | 9222f31ef4808c87da7aadfd5255102fa4284087 (diff) | |
parent | aa56d1bc09d4b7de4137db08cb6aa3cad9196d48 (diff) | |
download | meta-mlinux-86ffd0b6a1796a4be5492d05fc7d9596bac1a1a3.tar.gz meta-mlinux-86ffd0b6a1796a4be5492d05fc7d9596bac1a1a3.tar.bz2 meta-mlinux-86ffd0b6a1796a4be5492d05fc7d9596bac1a1a3.zip |
Merge changes after 5.0.0 release
Diffstat (limited to 'recipes-core/busybox/files/ifplugd.patch')
-rw-r--r-- | recipes-core/busybox/files/ifplugd.patch | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/recipes-core/busybox/files/ifplugd.patch b/recipes-core/busybox/files/ifplugd.patch new file mode 100644 index 0000000..839a8a2 --- /dev/null +++ b/recipes-core/busybox/files/ifplugd.patch @@ -0,0 +1,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 */ |