aboutsummaryrefslogtreecommitdiffstats
path: root/meta/recipes-graphics/wayland
diff options
context:
space:
mode:
authorPhilippe Coval <philippe.coval@open.eurogiciel.org>2015-05-08 15:56:40 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-05-09 22:25:48 +0100
commit8ffcdcc53bac64c62478fbb72d817c842dde8b28 (patch)
treefa1845f3734e17d6fc90ec3db12aca5f1ce2159b /meta/recipes-graphics/wayland
parent63054fa28d36e10b4cb09af18374068674f6746b (diff)
downloadopenembedded-core-contrib-8ffcdcc53bac64c62478fbb72d817c842dde8b28.tar.gz
weston-init: support system's configuration file
Look for OPTARGS variable in /etc/default/weston and set it as weston's service default options. This can be used to force system's supported backend. Change-Id: I0562c9326df5b46226093199873ef58d77aeae75 Signed-off-by: Philippe Coval <philippe.coval@open.eurogiciel.org> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-graphics/wayland')
-rw-r--r--meta/recipes-graphics/wayland/weston-init/init6
1 files changed, 5 insertions, 1 deletions
diff --git a/meta/recipes-graphics/wayland/weston-init/init b/meta/recipes-graphics/wayland/weston-init/init
index 8e662e00a5..2e938f4307 100644
--- a/meta/recipes-graphics/wayland/weston-init/init
+++ b/meta/recipes-graphics/wayland/weston-init/init
@@ -8,6 +8,10 @@
# Default-Stop: 0 1 6
### END INIT INFO
+if test -e /etc/default/weston ; then
+ . /etc/default/weston
+fi
+
killproc() {
pid=`/bin/pidof $1`
[ "$pid" != "" ] && kill $pid
@@ -34,7 +38,7 @@ case "$1" in
chmod 0700 $XDG_RUNTIME_DIR
fi
- openvt -s weston
+ openvt -s weston -- $OPTARGS
;;
stop)