From 2d2ddf507bf1ae2f4cc595b23b8e018398cbe8dd Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Thu, 23 Jul 2009 18:24:11 +0000 Subject: move core/* to main/ added maintainer to several packages as well --- main/openrc/hwdrivers.initd | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 main/openrc/hwdrivers.initd (limited to 'main/openrc/hwdrivers.initd') diff --git a/main/openrc/hwdrivers.initd b/main/openrc/hwdrivers.initd new file mode 100644 index 00000000..3d0ebf12 --- /dev/null +++ b/main/openrc/hwdrivers.initd @@ -0,0 +1,27 @@ +#!/sbin/runscript + +depend() { + need sysfs dev + before checkfs fsck + after modloop + keyword novserver +} + +# Load hardware drivers +start() { + # check for boot option "nocoldplug" + if get_bootparam noautodetect; then + ewarn "Autodetection of hardware disabled from boot cmdline" + return 0 + fi + + + ebegin "Loading hardware drivers" + find /sys -name modalias | xargs sort -u \ + | xargs modprobe -a 2> /dev/null + # we run it twice so we detect all devices + find /sys -name modalias | xargs sort -u \ + | xargs modprobe -a 2> /dev/null + eend 0 +} + -- cgit v1.2.3