blob: 9cd7412e28497f5ddef370b8a80890bd516d9fbc (
plain)
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
|
#! /bin/sh
matrixgui="/usr/bin/matrix_gui"
GUI_OPTS="-qws -display transformed:Rot90 /usr/share/matrix/html/menu_main.html"
test -x "$matrixgui" || exit 0
export LD_LIBRARY_PATH=/usr/lib
export TSLIB_PLUGINDIR=/usr/lib/ts
export TSLIB_TSDEVICE=/dev/input/touchscreen0
export TSLIB_CONFFILE=/etc/ts.conf
export QWS_MOUSE_PROTO=Tslib:/dev/input/touchscreen0
case "$1" in
start)
echo -n "Starting Matrix GUI application"
if [ ! -f /etc/pointercal ] ; then
ts_calibrate
fi
start-stop-daemon --start --quiet --background --pidfile /var/run/matrix-gui.pid --exec $matrixgui -- $GUI_OPTS
echo "."
;;
stop)
echo -n "Stopping Matrix GUI application"
start-stop-daemon --stop --quiet --pidfile /var/run/matrix-gui.pid
echo "."
;;
*)
echo "Usage: /etc/init.d/matrix-gui {start|stop}"
exit 1
esac
exit 0
|