From c11ca1e3784d76ba341efbf583e4225ec0f8c86b Mon Sep 17 00:00:00 2001 From: Michael Schuldt Date: Thu, 28 Jun 2012 13:35:42 +0200 Subject: [PATCH] Demo: Genivi Demo script update. - The demo script includes now start of the layer manager too. --- GeniviDemo.sh | 24 ++++++++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) diff --git a/GeniviDemo.sh b/GeniviDemo.sh index 91f1be6..98e5e83 100755 --- a/GeniviDemo.sh +++ b/GeniviDemo.sh @@ -19,9 +19,11 @@ ############################################################################ export LD_LIBRARY_PATH=/usr/lib:/usr/local/lib +export LM_PLUGIN_PATH=/usr/local/lib/layermanager export DISPLAY=:0.0 PIDSURFACE1=/tmp/surface1.pid PIDSURFACE2=/tmp/surface2.pid +PIDLM=/tmp/surface3.pid start_egl_example_application() { @@ -38,6 +40,13 @@ start_mock_example_application() } +start_layermanager() +{ + LayerManagerService -c4 -f0 -w1280 -h480 & + pidofdlt=`ps aux | grep LayerManagerService | grep -v grep | awk '{print $2}'` + echo $pidofdlt > $PIDLM +} + killprocess() { if [ -f $1 ]; then @@ -51,6 +60,12 @@ stop() killprocess $PIDSURFACE2 } +stop_layermanager() +{ + killprocess $PIDLM +} + + start() { start_egl_example_application @@ -61,15 +76,20 @@ case "$1" in start) start ;; + start_lm) + start_layermanager + ;; start_example_application) start_example_application ;; stop) stop ;; - + stop_lm) + stop_layermanager + ;; *) - echo "Usage: $0 {start|start_example_application|stop}" + echo "Usage: $0 {start|start_lm|start_example_application|stop|stop_lm}" ;; esac exit 0 -- 2.7.4