summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'init.d/udev')
-rw-r--r--init.d/udev27
1 files changed, 0 insertions, 27 deletions
diff --git a/init.d/udev b/init.d/udev
index c861338..41a6e64 100644
--- a/init.d/udev
+++ b/init.d/udev
@@ -23,19 +23,6 @@ depend()
keyword -vserver -lxc
}
-disable_oldnet_hotplug()
-{
- if is_service_enabled network; then
- # disable network hotplugging
- 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}"
- fi
-}
-
start_pre()
{
if [ -e /proc/sys/kernel/hotplug ]; then
@@ -66,23 +53,9 @@ start_pre()
return 1
fi
- # Need to do this before starting udev so it will load the rules.
- disable_oldnet_hotplug
-
return 0
}
-is_service_enabled()
-{
- local svc="$1"
-
- [ ! -e "/etc/init.d/${svc}" ] && return 1
-
- [ -e "/etc/runlevels/${RC_BOOTLEVEL}/${svc}" ] && return 0
- [ -e "/etc/runlevels/${RC_DEFAULTLEVEL}/${svc}" ] && return 0
- return 1
-}
-
start_udevmonitor()
{
yesno "${udev_monitor}" || return 0