]> code.ossystems Code Review - openembedded-core.git/commitdiff
weston-init: support system's configuration file
authorPhilippe Coval <philippe.coval@open.eurogiciel.org>
Fri, 8 May 2015 13:56:40 +0000 (15:56 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 9 May 2015 21:25:48 +0000 (22:25 +0100)
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>
meta/recipes-graphics/wayland/weston-init/init

index 8e662e00a551ae2ff323f4fe3f3c4db8e82c7c84..2e938f430719ea1b9924fdbfeb281e1f66474009 100644 (file)
@@ -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)