aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/freondemo/files/freondemo
blob: 80dd36e1324624266608676b521147b5c2b439fe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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 &