summaryrefslogtreecommitdiff
blob: abb01fcd84295380262e2e6beece8f49b700f1a6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#!/sbin/runscript
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-apps/hotplug/files/hotplug.rc.empty,v 1.2 2005/01/23 19:24:48 wolf31o2 Exp $

#
# nothing here anymore. Please use the coldplug package if you really want to
# load modules for devices that are discovered by your kernel before init runs.
#
# However, please realize that if you have any problems, the developers
# recommend just using the modules.autoload functionality to handle this in a
# much simpler manner.
#
# Comments, flames, and fine beer should be directed at gregkh@gentoo.org
#

depend() {
	need modules
}

start () {
	# just verify that people build their kernel with hotplug support.
	if [ ! -f /proc/sys/kernel/hotplug ] ; then
		eerror "CONFIG_HOTPLUG not enabled for this kernel!"
		return 1
	fi
	# This unpacks any firmware tarballs.  Used for LiveCD.
	if [ -e /lib/firmware.tar.bz2 ]
	then
		ebegin "Unpacking hotplug frmware"
		tar xjf /lib/firmware.tar.bz2 -C /lib/firmware
		eend 0
	fi
}