summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sys-apps/busybox/files/mdev.initd')
-rw-r--r--sys-apps/busybox/files/mdev.initd53
1 files changed, 0 insertions, 53 deletions
diff --git a/sys-apps/busybox/files/mdev.initd b/sys-apps/busybox/files/mdev.initd
deleted file mode 100644
index 2a61f99b..00000000
--- a/sys-apps/busybox/files/mdev.initd
+++ /dev/null
@@ -1,53 +0,0 @@
-#!/sbin/runscript
-# Copyright 1999-2014 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/busybox/files/mdev.initd,v 1.1 2014/12/30 19:13:42 williamh Exp $
-
-depend()
-{
- provide dev
- need dev-mount sysfs
-}
-
-find_mdev()
-{
- if [ -x /sbin/mdev ] ; then
- echo "/sbin/mdev"
- else
- echo "/bin/busybox mdev"
- fi
-}
-
-populate_mdev()
-{
- ebegin "Populating /dev with existing devices with mdev -s"
- $(find_mdev) -s
- eend $?
- return 0
-}
-
-seed_dev()
-{
- # copy over any persistent things
- if [ -d /lib/mdev/devices ] ; then
- cp -RPp /lib/mdev/devices/* /dev 2>/dev/null
- fi
-}
-
-start()
-{
- seed_dev
-
- # Setup hotplugging (if possible)
- if [ -e /proc/sys/kernel/hotplug ] ; then
- ebegin "Setting up mdev as hotplug agent"
- echo $(find_mdev) > /proc/sys/kernel/hotplug
- eend 0
- fi
-
- if get_bootparam "nocoldplug" ; then
- ewarn "Skipping mdev coldplug as requested in kernel cmdline"
- else
- populate_mdev
- fi
-}