When I restart my networking on Fedora24 with systemctl restart network, I would like a script to run automatically. The purpose of this script is to reattach some interfaces to some bridges. What is the best way to do this?I tried /sbin/ifup-local as referenced from /etc/sysconfig/network-scripts/ifup-post, but this only ever executes /sbin/ifup-local for the loopback interface. My bridges are brought up later, so this is no good.
Run custom script every time network is restarted
networking;fedora;systemd
make sure your ifcfg-eth0 (or whatever it is) has NM_CONTROLLED=no configuration. This way it will not exclude all ifup-* scripts.