Le 18/12/2017 à 16:13, Svante Signell a écrit :
On Mon, 2017-12-18 at 16:00 +0100, Didier Kryn wrote:
Le 18/12/2017 à 15:58, Svante Signell a écrit :
On Mon, 2017-12-18 at 15:32 +0100, Didier Kryn wrote:
I've just done apt-get source ifupdown.
The source contains two patches:
0001-Fix-a-crash-when-multiple-interfaces-are-specified-f.patch
0001-Unconditionally-ifup-hotplug-interfaces
So it seems things are well done and it is enough to remove the
second patch (attached).
However, looking all over the package source, including debian/rules, I
can't find where the patches are applied.
The patch is against the file /etc/init.d/networking, see the patch.
Sure, I've seen that, but I wanted to modify the package and didn't
find in debian/rules or anywhere else where the patch was applied.
I think the best solution would be to make that patch conditional on if systemd
is running or not, and submit to the Debian bug tracker. And BTW the ifupdown
maintainer is Guus Sliepen. Nice guy.
Are you sure the reason is systemd? Since Debian forces systemd in
and Devuan forces it out, the two distros could just use slightly
different versions.
Reading /etc/init.d/networking, it is clear that the patch has been
applied. I reverted the change and the system now boots as before.
What is a little annoyance (but I'm not sure it's new), on my
laptop, is that, if an ethernet cable is connected at boot time, then
ifplugd will never set up wlan0 until I have set it up by hand. All the
other functionalities are OK and there is no delay anymore.
Attached is a patch to apply to /etc/init.d/networking to restore
the pre-Ascii behaviour. With this patch, it is not necessary to hack
/lib/udev/ifupdown-hotplug.
Didier
--- 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 ]
+ then
+ echo "$iface"
+ fi
fi
fi
}
_______________________________________________
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng