summaryrefslogtreecommitdiffstats
path: root/meta/recipes-graphics/wayland/weston-init/init
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:26:45 +0100
commit5179d7cd6e96be560c7177c6024806e12cb074dc (patch)
tree89017e34b65e599b85620475fc6327c7a5568c39 /meta/recipes-graphics/wayland/weston-init/init
parent54870dcdddee63659f2010ad8bdae17440c3effb (diff)
downloadpoky-5179d7cd6e96be560c7177c6024806e12cb074dc.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 (From OE-Core rev: 8ffcdcc53bac64c62478fbb72d817c842dde8b28) 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/weston-init/init')
-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 @@
8# Default-Stop: 0 1 6 8# Default-Stop: 0 1 6
9### END INIT INFO 9### END INIT INFO
10 10
11if test -e /etc/default/weston ; then
12 . /etc/default/weston
13fi
14
11killproc() { 15killproc() {
12 pid=`/bin/pidof $1` 16 pid=`/bin/pidof $1`
13 [ "$pid" != "" ] && kill $pid 17 [ "$pid" != "" ] && kill $pid
@@ -34,7 +38,7 @@ case "$1" in
34 chmod 0700 $XDG_RUNTIME_DIR 38 chmod 0700 $XDG_RUNTIME_DIR
35 fi 39 fi
36 40
37 openvt -s weston 41 openvt -s weston -- $OPTARGS
38 ;; 42 ;;
39 43
40 stop) 44 stop)