matrix-gui-e: added chvt to init scripts
[openembedded.git] / recipes / ti / matrix-gui-e / dm365-evm / init
blobd860ad9083305f3c45e71386169c60f250b8e198
1 #! /bin/sh
2 matrixgui="/usr/bin/matrix_guiE"
3 GUI_OPTS="-qws -geometry 720x480+0+10 -display transformed:Rot0 /usr/share/matrix/html/menu_main.html"
5 test -x "$matrixgui" || exit 0
7 case "$1" in
8 start)
10 chvt 4
12 # switch to component 480p mode
13 echo 480P-60 > /sys/class/davinci_display/ch0/mode
14 echo COMPONENT > /sys/class/davinci_display/ch0/output
15 echo -n "Starting Matrix GUI application"
16 start-stop-daemon --start --quiet --background --pidfile /var/run/matrix-gui-e.pid --exec $matrixgui -- $GUI_OPTS
17 echo "."
19 stop)
20 echo -n "Stopping Matrix GUI application"
21 start-stop-daemon --stop --quiet --pidfile /var/run/matrix-gui-e.pid
22 echo "."
25 echo "Usage: /etc/init.d/matrix-gui-e {start|stop}"
26 exit 1
27 esac
29 exit 0