Le 22/12/2017 à 08:49, KatolaZ a écrit :
On Fri, Dec 22, 2017 at 08:40:37AM +0100, Didier Kryn wrote:
Hello.
I've now switched to ASCII for my personal laptop (amd-64 arch) and I
found it working well, better for me than Jessie.
Hi Didier,
that's pretty good news :)
[cut]
A regression with respect to the older releases of Debian and Devuan is
the new /etc/init.d/networking script. I have sent on the list a patch to
correct this file. I aso had to change /etc/interfaces: previously I had
"allow-hotplug wlan0"; now I still have it, plus "auto wlan0", otherwise
wlan0 is not always started at boot time. This ifpudown logic is rather
convoluted and I fall down to this kind of tricks.
Could you please send a patch to /etc/init.d/networking (it's very
difficult to retrieve it from the ML)? I am not looking forward to
fork ifupdown, to be honest. It would be better maybe to submit the
patch upstream (i.e., to Debian).
Seems the patch introducing the regression is from the author, not
from Debian. It is in the form of a patch in the source of the package,
but I didn't find where this patch is applied. Maybe, as suggested by
Svante, I should modify the patch so that it changes the behaviour only
if systemd is installed, and propose this modification to the author.
Didier
PS please find my patch in attachment.
--- ifupdown-hotplug-broken 2017-12-17 23:21:29.815204275 +0100
+++ ifupdown-hotplug-repaired 2017-12-17 23:24:05.564752202 +0100
@@ -75,7 +75,14 @@ net_ifup() {
wait_for_interface lo
- exec ifup --allow=hotplug $INTERFACE
+ if [ -z "${INTERFACE##eth[0-9]*}" ]; then
+ if [ $(cat /sys/class/net/$INTERFACE/carrier) -eq 1 ]; then
+ exec ifup --allow=hotplug $INTERFACE
+ fi
+ else
+ exec ifup --allow=hotplug $INTERFACE
+ fi
+
}
net_ifdown() {
_______________________________________________
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng