Lines 100-105
start_pre()
Link Here
|
100 |
eerror "Unable to find udev executable." |
100 |
eerror "Unable to find udev executable." |
101 |
return 1 |
101 |
return 1 |
102 |
fi |
102 |
fi |
|
|
103 |
|
104 |
# Need to do this before starting udev so it will load the rules. |
105 |
disable_oldnet_hotplug |
106 |
|
103 |
return 0 |
107 |
return 0 |
104 |
} |
108 |
} |
105 |
|
109 |
|
Lines 118-124
disable_oldnet_hotplug()
Link Here
|
118 |
{ |
122 |
{ |
119 |
if is_service_enabled network; then |
123 |
if is_service_enabled network; then |
120 |
# disable network hotplugging |
124 |
# disable network hotplugging |
121 |
local f="/run/udev/rules.d/90-network.rules" |
125 |
local d="/run/udev/rules.d" |
|
|
126 |
mkdir -p "${d}" |
127 |
local f="${d}/90-network.rules" |
122 |
echo "# This file disables network hotplug events calling" >> "${f}" |
128 |
echo "# This file disables network hotplug events calling" >> "${f}" |
123 |
echo "# old-style openrc net scripts" >> "${f}" |
129 |
echo "# old-style openrc net scripts" >> "${f}" |
124 |
echo "# as we use /etc/init.d/network to set up our network" >> "${f}" |
130 |
echo "# as we use /etc/init.d/network to set up our network" >> "${f}" |
Lines 186-192
display_hotplugged_services()
Link Here
|
186 |
|
192 |
|
187 |
start_post() |
193 |
start_post() |
188 |
{ |
194 |
{ |
189 |
disable_oldnet_hotplug |
|
|
190 |
start_udevmonitor |
195 |
start_udevmonitor |
191 |
populate_dev |
196 |
populate_dev |
192 |
stop_udevmonitor |
197 |
stop_udevmonitor |
193 |
- |
|
|