On 28.02.2011 17:29, Michael Biebl wrote:
Hi Michael,
My sugggestion would be something like this:
in net.agent:
if [ -d /sys/fs/cgoup/systemd ] ; then
systemctl start ifup@$INTERFACE.service
else
exec ifup --allow=hotplug $INTERFACE
fi
and provide a instanced [email protected] file, which has the necessary
dependencies.
Attached is a very simple implementation for this idea.
Please test and report back if this fixes your problem:
1) Copy net.agent to /lib/udev . It will overwrite your existing net.agent file,
so I'd suggest you make a copy first.
2) Copy [email protected] to /etc/systemd/system/
3) Reboot and test if interface was brought up correctly. systemctl | grep ifup
should show something like "[email protected]"
Works like a charm, thanks.
root@systemd:~# systemctl | grep eth0
sys-devi...et-eth0.device loaded active plugged
/sys/devices/virtio-pci/vi
[email protected] loaded active exited Start ifup for eth0
Bernhard
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]