diff options
Diffstat (limited to 'recipes/freondemo/files/freondemo')
-rw-r--r-- | recipes/freondemo/files/freondemo | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/recipes/freondemo/files/freondemo b/recipes/freondemo/files/freondemo new file mode 100644 index 0000000000..80dd36e132 --- /dev/null +++ b/recipes/freondemo/files/freondemo @@ -0,0 +1,20 @@ +#!/bin/sh + +# We start a system wide gstd daemon +gstd & + +amixer -q sset 'HP DAC' 127 + +#If we detect a mouse, use it, otherwise configure the touchcreen +if [ ! -c /dev/input/mice ] && [ ! -c /dev/input/mouse0 ] ; then + if [ -c /dev/input/touchscreen0 ] ; then + export TSLIB_TSDEVICE=/dev/input/touchscreen0 + if [ ! -f /etc/pointercal ] ; then + # We need to calibrate the screen + ts_calibrate + fi + export QWS_MOUSE_PROTO=tslib + fi +fi + +/usr/libexec/FreonDemo -qws & |