@@ -, +, @@ --- init.d/udev | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) --- a/init.d/udev +++ a/init.d/udev @@ -100,6 +100,10 @@ start_pre() eerror "Unable to find udev executable." return 1 fi + + # Need to do this before starting udev so it will load the rules. + disable_oldnet_hotplug + return 0 } @@ -118,7 +122,9 @@ disable_oldnet_hotplug() { if is_service_enabled network; then # disable network hotplugging - local f="/run/udev/rules.d/90-network.rules" + local d="/run/udev/rules.d" + mkdir -p "${d}" + local f="${d}/90-network.rules" echo "# This file disables network hotplug events calling" >> "${f}" echo "# old-style openrc net scripts" >> "${f}" echo "# as we use /etc/init.d/network to set up our network" >> "${f}" @@ -186,7 +192,6 @@ display_hotplugged_services() start_post() { - disable_oldnet_hotplug start_udevmonitor populate_dev stop_udevmonitor --