diff options
author | Michael Schuldt <michael.schuldt@bmw.de> | 2012-06-28 13:35:42 +0200 |
---|---|---|
committer | Michael Schuldt <michael.schuldt@bmw.de> | 2012-06-28 13:35:42 +0200 |
commit | c11ca1e3784d76ba341efbf583e4225ec0f8c86b (patch) | |
tree | 7cdcc58bf8fc263ad470dd9f473fa785f8f81362 /GeniviDemo.sh | |
parent | 7bb948a00ec1ee1c6f7cfc2b410cc0faf6770eb5 (diff) | |
download | layer_management-c11ca1e3784d76ba341efbf583e4225ec0f8c86b.tar.gz |
Demo: Genivi Demo script update.
- The demo script includes now start of the layer manager too.
Diffstat (limited to 'GeniviDemo.sh')
-rwxr-xr-x | GeniviDemo.sh | 24 |
1 files 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 |