Hi,
I had the same problem as the one reported as #660861: hotpluggable
interfaces wouldn't appear when running systemd. In my case, the device
is the Ethernet-over-USB interface that I use to communicate with my
Freerunner phone. My initial hackish fix was to s/start/restart/ in
net.agent, but it's not satisfying. However, once I found this bug
report, I replaced
,----
| exec ifdown --allow=hotplug $INTERFACE
`----
with
,----
| if [ -e /sys/fs/cgroup/systemd ]; then
| exec systemctl stop ifup@${INTERFACE}.service
| else
| exec ifdown --allow=hotplug $INTERFACE
| fi
`----
in net_ifdown(), and I can confirm that this makes the interface appear
and disappear properly when I plug/unplug the phone. Also, when the
phone is unplugged, "systemctl status [email protected]" now returns the
correct status ("inactive") instead of wrongly reporting that the
service is active.
I'm neither a systemd maintainer nor an ifupdown maintainer, but the
change described above does work. Please apply :-)
Thanks,
Roland.
--
Roland Mas
Reincarnation likes a joke as much as the next philosophical hypothesis.
-- in The Truth (Terry Pratchett)
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]