/[pkgs]/devel/915resolution/915resolution-init
ViewVC logotype

Contents of /devel/915resolution/915resolution-init

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Mon Feb 19 18:26:43 2007 UTC (2 years, 9 months ago) by cweyl
Branch: MAIN
CVS Tags: resolution-0_5_3-1_fc7, F-8-split, resolution-0_5_2-6_fc7, resolution-0_5_2-4_fc7, F-7-split, resolution-0_5_3-2_fc8, resolution-0_5_2-5_fc7, resolution-0_5_3-3_fc9, F-9-split, HEAD
update for BZ#219236
1 #!/bin/bash
2 #
3 # /etc/rc.d/init.d/915resolution
4 #
5 # Starts the 915resulution helper
6 #
7 # chkconfig: - 65 35
8 # description: 915resolution tool
9 # processname: 915resolution
10 # Source function library.
11 . /etc/init.d/functions
12
13 test -x /usr/sbin/915resolution || exit 0
14
15 RETVAL=0
16 prog="915resolution"
17
18 start() {
19 if [ -r /etc/sysconfig/915resolution ]; then
20 . /etc/sysconfig/915resolution
21 fi
22 if [ -n "$RESOLUTION" ]; then
23 echo -n $"Starting $prog: "
24 /usr/sbin/915resolution $RESOLUTION >/dev/null 2>&1
25 RETVAL=$?
26 [ $RETVAL -eq 0 ] && touch /var/lock/subsys/915resolution
27 echo
28 fi
29 }
30
31 stop() {
32 rm -f /var/lock/subsys/915resolution
33 }
34
35 #
36 # See how we were called.
37 #
38 case "$1" in
39 start)
40 start
41 ;;
42 stop)
43 stop
44 ;;
45 reload|restart)
46 stop
47 start
48 RETVAL=$?
49 ;;
50 condrestart)
51 if [ -f /var/lock/subsys/915resolution ]; then
52 stop
53 start
54 fi
55 ;;
56 status)
57 [ -f /var/lock/subsys/915resolution ]
58 RETVAL=$?
59 ;;
60 *)
61 echo $"Usage: $0 {condrestart|start|stop|restart|reload|status}"
62 exit 1
63 esac
64
65 exit $RETVAL

admin@fedoraproject.org
ViewVC Help
Powered by ViewVC 1.1.2