On 09.07.24 12:27, Bjørn Mork wrote:
Run user scripts on up/down events. That's a huge blank spot in systemd-networkd. And by design, so it's really not fixable.
Well, I've been apt-purging ifupdown for almost a decade by now and didn't yet miss any of it.
You can think whether that script is still required; maybe systemd-networkd / -resolved can do it for you.
Or you can monitor systemd's and systemd-networkd's dbus for network devices appearing (or vanishing) and run the requisite script.
Or you can use udev rules.Or you can tell a unit to run only when a specific network interface is present.
Or you can use NM and its script dispatcher instead.Or, well, you can of course continue to use ifupdown if none of the above work for you. But that doesn't mean ifupdown should be the default IMHO.
-- -- regards -- -- Matthias Urlichs
OpenPGP_signature.asc
Description: OpenPGP digital signature