blob: 3889e9966d3fc85006bf8a256505f8aa70ff3529 (
plain)
1 #!/bin/sh
2 #
3 # /etc/rc.d/coldplug: load modules at boot-time for non-hotplugged devices
4 #
5
6 case $1 in
7 start)
8 # Notify the user if hotplug support is missing from their kernel.
9 if [ ! -f /proc/sys/kernel/hotplug ]
10 then
11 echo "CONFIG_HOTPLUG (hotplug support) is missing from your kernel!"
12 exit 1
13 fi
14 # Check for hotplug package
15 if [ ! -d /etc/hotplug ]
16 then
17 echo "Coldplug requires hotplug!"
18 exit 1
19 fi
20 # Do the deed
21 for i in /etc/hotplug/*.rc
22 do
23 $i start
24 done
25 ;;
26 stop)
27 ;;
28 restart)
29 ;;
30 *)
31 ;;
32 esac
|