我正在尝试从Ubuntu迁移到Fedora(22),但是在界面启动之前我找不到如何运行网络脚本。在Fedora中有/etc/network/if-pre-up.d/的等价物吗?
我需要在(任意)接口启动时触发脚本并捕获变量中的接口(以便我可以在其上执行macchanger)。最初我认为这可以通过systemd-networkd进行管理,但是当NetworkManager处于活动状态时似乎并非如此[1]
[0] https://help.ubuntu.com/community/AnonymizingNetworkMACAddresses
Failed to get properties: Access denied.
我认为vim /etc/systemd/system/macspoof@[your-interface].service
是不正确的。它应该是/etc/systemd/system/macspoof@.service
但它无论如何都不起作用。你确定你测试过这个吗?