blob: 8e251c605aa20a12d98fa47ac276b22eb0bb33a9 (
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
|
#!/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/coldplug/files/coldplug.rc,v 1.2 2004/09/28 01:50:46 swegener Exp $
depend() {
need modules
}
checkconfig() {
if [ ! -d /etc/hotplug ] ; then
eerror "Coldplug requires scripts & configs in /etc/hotplug !"
return 1
fi
}
start() {
checkconfig || return 1
for RC in /etc/hotplug/*.rc
do
NAME=`basename $RC .rc`
ebegin "Coldplugging $NAME devices"
# We do not want to check the return status, as
# some of the scripts may fail due to drivers not
# compiled as modules ...
$RC start
eend 0
done
}
|