File: 855resolution.init

package info (click to toggle)
855resolution 0.3-4
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 96 kB
  • ctags: 93
  • sloc: ansic: 402; makefile: 67; sh: 30
file content (41 lines) | stat: -rw-r--r-- 788 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#! /bin/sh

PATH=/sbin:/bin:/usr/sbin:/usr/bin
PROG=/usr/sbin/855resolution
NAME=855resolution
DESC=855resolution

test -x $DAEMON || exit 0

# Include 855resolution defaults if available
if [ -f /etc/default/855resolution ] ; then
	. /etc/default/855resolution
fi
if [ "$MODE" = "" ] || [ "$XRESO" = "" ] || [ "$YRESO" = "" ]; then
   echo "*** Your 855resolution hasn't been configured! ***"
   echo "Please read /usr/share/doc/855resolution/README.Debian and define"
   echo "MODE, XRESO, and YRESO."
   exit 0
fi

set -e

case "$1" in
  start)
	echo -n "Starting $DESC: "
	$PROG $MODE $XRESO $YRESO
	echo "$NAME."
	;;
  stop)
	#echo -n "Stopping $DESC: "
	#echo "$NAME."
	;;
  *)
	N=/etc/init.d/$NAME
	# echo "Usage: $N start" >&2
	echo "Usage: $N start" >&2
	exit 1
	;;
esac

exit 0