wok view gpm/stuff/etc/init.d/gpm @ rev 14429

fix openjpeg-dev, add openjpeg2, rebuild mupdf, move from undigest djvulibre, and finally add fbpdf-mupdf
author Aleksej Bobylev <al.bobylev@gmail.com>
date Wed Apr 24 14:06:49 2013 +0000 (2013-04-24)
parents
children 8ebec64e4191
line source
1 #!/bin/sh
2 # /etc/init.d/gpm : Start, stop and restart gpm server on SliTaz, at
3 # boot time or with the command line.
4 #
5 # To start gpm server at boot time, just put mysql in the $RUN_DAEMONS
6 # variable of /etc/rcS.conf and configure options with /etc/daemons.conf
7 #
8 . /etc/init.d/rc.functions
9 . /etc/daemons.conf
11 NAME=gpm
12 DESC="gpm server"
13 DAEMON=/usr/sbin/gpm
14 OPTIONS=$GPM_OPTIONS
15 [ -n "$OPTIONS" ] || OPTIONS="-m /dev/psaux -t ps2"
17 case "$1" in
18 start)
19 $DAEMON $OPTIONS
20 status
21 ;;
22 stop)
23 $DAEMON -k
24 status
25 ;;
26 restart)
27 $DAEMON -k
28 status
29 $DAEMON $OPTIONS
30 status
31 ;;
32 *)
33 echo ""
34 echo -e "\033[1mUsage:\033[0m /etc/init.d/`basename $0` [start|stop|restart]"
35 echo ""
36 exit 1
37 ;;
38 esac
40 exit 0