1 |
#!/bin/bash |
#!/bin/bash |
2 |
|
# $Header: /home/cvsd/magellan-cvs/magellan-src/magellan-initscripts/etc/rc.d/init.d/hotplug,v 1.2 2005-03-15 19:07:56 niro Exp $ |
3 |
|
|
4 |
#%rlevels: 0:k 1:k 6:k 7:s |
#%rlevels: 0:k 1:k 6:k 7:s |
5 |
#%start: 56 |
#%start: 56 |
20 |
echo "Please install sys-apps/hotplug" |
echo "Please install sys-apps/hotplug" |
21 |
exit 1 |
exit 1 |
22 |
fi |
fi |
23 |
|
|
24 |
for i in /etc/hotplug/*.rc |
for i in /etc/hotplug/*.rc |
25 |
do |
do |
26 |
echo -e ${COLOREDSTAR}"Starting hotplug for $(basename ${i} .rc) devices" |
echo -e ${COLOREDSTAR}"Starting hotplug for $(basename ${i} .rc) devices" |
49 |
sleep 1 |
sleep 1 |
50 |
$0 start |
$0 start |
51 |
;; |
;; |
52 |
|
|
53 |
*) |
*) |
54 |
echo "Usage: $0 {start|stop|restart}" |
echo "Usage: $0 {start|stop|restart}" |
55 |
exit 1 |
exit 1 |