summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuli Suominen <ssuominen@gentoo.org>2014-03-07 19:40:26 +0200
committerSamuli Suominen <ssuominen@gentoo.org>2014-03-07 19:40:26 +0200
commitf9880da6560c54bca050679b389b397c79174de7 (patch)
tree3d34eb81c8620233c23f8bd314b877b67c8d24f4
parentThese files are now part of netifrc since version 0.2.1, see Gentoo bug 487922 (diff)
downloadudev-gentoo-scripts-f9880da6560c54bca050679b389b397c79174de7.tar.gz
udev-gentoo-scripts-f9880da6560c54bca050679b389b397c79174de7.tar.bz2
udev-gentoo-scripts-f9880da6560c54bca050679b389b397c79174de7.zip
This code is now inside net.sh since netifrc 0.2.2, see Gentoo bug 503530
-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