I want to put my wifi interface
wlp3s0 into 4addr mode before adding it to the bridge
br0, so I write following
[Unit] Description=Put interface into 4addr mode Before=sys-subsystem-net-devices-br0.device After=sys-subsystem-net-devices-wlp3s0.device [Service] Type=oneshot ExecStart=/sbin/iw dev wlp3s0 set 4addr on RemainAfterExit=true [Install] WantedBy=sys-subsystem-net-devices-br0.device
However I see that this service runs BEFORE
jounalctl also didn't give explanation why
4addr2 started before
$ sudo journalctl -u 4addr2 -- Logs begin at Thu 2020-09-03 08:44:03 EDT, end at Thu 2020-09-03 08:48:53 EDT. -- Sep 03 08:44:05 router systemd: Starting Put interfaces into 4addr mode... Sep 03 08:44:05 router iw: command failed: No such device (-19) Sep 03 08:44:05 router systemd: 4addr2.service: Main process exited, code=exited, status=237/KEYRING Sep 03 08:44:05 router systemd: 4addr2.service: Failed with result 'exit-code'. Sep 03 08:44:05 router systemd: Failed to start Put interfaces into 4addr mode.
How can I understand why my service started before interface device initialized?