Initial version of libomxil-vc4 for RPI3
[platform/adaptation/broadcom/libomxil-vc4.git] / host_applications / linux / apps / dtoverlay / dtoverlay-pre
1 #!/bin/bash
2 if [ "$DISPLAY" == "" ]; then
3         export DISPLAY=":0.0"
4 fi
5 CMD="which lxpanelctl >/dev/null 2>&1 && lxpanelctl alsastop >/dev/null"
6 if [ $EUID -eq 0 ]; then
7         exec su pi -c "$CMD"
8 else
9         exec $CMD
10 fi