navigation: remove execute bits in repo
[AGL/meta-agl-demo.git] / recipes-demo-hmi / navigation / mapviewer / mapviewer-settings.sh
1 #!/bin/sh
2 LMC=/usr/bin/LayerManagerControl
3 IFS=$'\n'
4
5 SURFACEID=16777216
6
7 while :
8 do
9     /bin/sleep 1
10     surfaces=()
11     for line in $($LMC get surfaces 2> /dev/null); do
12         if [ "X-" = "X$(echo $line | awk '{print $1}')" ]; then
13             surfaceid=$(echo $line | awk '{print $3}')
14             if [ "$surfaceid" = "$SURFACEID" ]; then
15                 $LMC set surface $SURFACEID source region 0 0 384 368
16                 $LMC set surface $SURFACEID destination region 0 0 384 368
17                 $LMC set surface $SURFACEID visibility 1
18                 $LMC set layer 11001 render order $SURFACEID
19                 exit
20             fi
21         fi
22     done
23 done