Le 22/12/2017 à 12:26, Antony Stone a écrit :
On Friday 22 December 2017 at 11:53:15, Didier Kryn wrote:

Le 22/12/2017 à 08:58, Didier Kryn a écrit :
PS please find my patch in attachment.
      This was the wrong patch, against /lib/udev/ifupdown-hotplug,
falsely renamed.

      Now I attach the right one.

      Didier


check-link-state.patch
   --- networking~ 2016-09-16 15:02:20.000000000 +0200
+++ networking  2017-12-18 17:25:49.902781233 +0100
@@ -112,7 +112,12 @@ ifup_hotplug () {
                             done)
             if [ -n "$ifaces" ]
             then
-               ifup $ifaces "$@" || true
+               # link detection does not work unless we up the link
+               ip link set "$iface" up || true
+               if [ "$(cat /sys/class/net/$link/operstate)" = up ]
Doesn't that "up" need quotation marks around it there?
    What would it change? There is no space in this string. I just undid the change by copy and paste. Therefore the script has been like this for years.

    Didier

_______________________________________________
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng

Reply via email to