Magellan Linux

Annotation of /branches/unlabeled-1.1.1/magellan-initscripts/etc/rc.d/init.d/hotplug

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2 - (hide annotations) (download)
Mon Dec 13 22:52:07 2004 UTC (19 years, 4 months ago) by niro
File size: 823 byte(s)
imported.

1 niro 2 #!/bin/bash
2    
3     #%rlevels: 0:k 1:k 6:k 7:s
4     #%start: 56
5     #%stop: 55
6    
7     #deps
8     #%needs:
9     #%before:
10     #%after:
11    
12     source /etc/sysconfig/rc
13     source $rc_functions
14    
15     case $1 in
16     start)
17     if [ ! -d /etc/hotplug ]
18     then
19     echo "Please install sys-apps/hotplug"
20     exit 1
21     fi
22    
23     for i in /etc/hotplug/*.rc
24     do
25     echo -e ${COLOREDSTAR}"Starting hotplug for $(basename ${i} .rc) devices"
26     ${i} start
27     evaluate_retval
28     done
29    
30     update_svcstatus $1
31     splash svc_started "$(basename $0)" 0
32     ;;
33    
34     stop)
35     for i in /etc/hotplug/*.rc
36     do
37     echo -e ${COLOREDSTAR}"Stopping hotplug for $(basename ${i} .rc) devices"
38     ${i} stop
39     evaluate_retval
40     done
41    
42     update_svcstatus $1
43     splash svc_stopped "$(basename $0)" 0
44     ;;
45    
46     restart)
47     $0 stop
48     sleep 1
49     $0 start
50     ;;
51    
52     *)
53     echo "Usage: $0 {start|stop|restart}"
54     exit 1
55     ;;
56     esac

Properties

Name Value
svn:executable *