summaryrefslogtreecommitdiffstats
path: root/init.d
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2009-03-19 20:11:13 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2009-03-19 20:11:13 +0000
commit768de85016aa74d1f0531cbcd006702bd471f947 (patch)
tree3d00904973dcbb194e91b0d75a83ef3832e8fdc6 /init.d
parent339173047de4881d9161a4615eecdd2d81d74b8d (diff)
downloadalpine-baselayout-768de85016aa74d1f0531cbcd006702bd471f947.tar.bz2
alpine-baselayout-768de85016aa74d1f0531cbcd006702bd471f947.tar.xz
removed unused coldplug script
Diffstat (limited to 'init.d')
-rwxr-xr-xinit.d/coldplug66
1 files changed, 0 insertions, 66 deletions
diff --git a/init.d/coldplug b/init.d/coldplug
deleted file mode 100755
index a39f39f..0000000
--- a/init.d/coldplug
+++ /dev/null
@@ -1,66 +0,0 @@
-#!/sbin/runscript
-
-trigger_uevents() {
- local i
- for i in /sys/bus/*/devices/*/uevent\
- /sys/class/*/*/uevent\
- /sys/block/*/uevent\
- /sys/block/*/*/uevent ; do
- case "$i" in
- */device/uevent)
- continue
- ;;
- */class/mem/*|*/class/tty/*)
- echo add > "$i"
- ;;
- */block/md*|*/block/dm-*)
- last="$last $i"
- ;;
- */*)
- default="$default $i"
- ;;
- esac
- done
- for i in $default $last ; do
- echo add > "$i"
- done
-}
-
-# coldplug devices
-start() {
- unset NOCOLDPLUG
- # check for boot option "nocoldplug"
- for i in `cat /proc/cmdline`; do
- [ "$i" = "nocoldplug" ] && NOCOLDPLUG=true
- done
-
- if [ "$NOCOLDPLUG" ]; then
- ebegin "Skipping coldplugging"
- eend 0
- return
- fi
-
-# for rc in /etc/hotplug/*.rc ; do
-# name=`basename $rc .rc`
-# ebegin "Coldplugging $name devices"
-# $rc start 2>/tmp/coldplug.err
-# eend 0
-# done
- ebegin "Coldplugging devices"
-# while [ -d /dev/.udev/queue ] ; do
-# sleep 1
-# echo -n "."
-# done
-# trigger_uevents
-# sleep 1
-# while [ -d /dev/.udev/queue ] ; do
-# sleep 1
-# echo -n "."
-# done
- find /sys -name modalias | while read a ; do
- modprobe `cat $a` 2>/dev/null || echo $a >> /tmp/failed
- done
- eend 0
-}
-
-