Contents of /trunk/synaptics/synaptics.rc
Parent Directory | Revision Log
Revision 61 -
(show annotations)
(download)
Sun Feb 19 12:05:13 2006 UTC (18 years, 8 months ago) by niro
File size: 871 byte(s)
Sun Feb 19 12:05:13 2006 UTC (18 years, 8 months ago) by niro
File size: 871 byte(s)
typos
1 | #!/bin/bash |
2 | # $Header: /root/magellan-cvs/src/synaptics/synaptics.rc,v 1.2 2006-02-19 12:05:13 niro Exp $ |
3 | |
4 | #%rlevels: 3:s 4:s 5:s 0:k 1:k 2:k 6:k |
5 | #%start: 80 |
6 | #%stop: 20 |
7 | |
8 | #deps |
9 | #%needs: |
10 | #%before: |
11 | #%after: |
12 | |
13 | source /etc/sysconfig/rc |
14 | source $rc_functions |
15 | |
16 | # source nas options |
17 | [ -f /etc/conf.d/synaptics ] && . /etc/conf.d/synaptics |
18 | |
19 | case "$1" in |
20 | start) |
21 | echo -e ${COLOREDSTAR}"Starting synaptics daemon ..." |
22 | loadproc /usr/X11R6/bin/syndaemon ${SYNAPTICS_OPTIONS} |
23 | |
24 | update_svcstatus $1 |
25 | splash svc_started "$(basename $0)" 0 |
26 | ;; |
27 | |
28 | stop) |
29 | echo -e ${COLOREDSTAR}"Stopping synaptics daemon ..." |
30 | killproc /usr/X11R6/bin/syndaemon |
31 | |
32 | update_svcstatus $1 |
33 | splash svc_stopped "$(basename $0)" 0 |
34 | ;; |
35 | |
36 | restart) |
37 | $0 stop |
38 | sleep 1 |
39 | $0 start |
40 | ;; |
41 | |
42 | status) |
43 | statusproc /usr/X11R6/bin/syndaemon |
44 | ;; |
45 | |
46 | *) |
47 | echo "Usage: $0 {start|stop|restart|status}" |
48 | exit 1 |
49 | ;; |
50 | esac |