diff options
Diffstat (limited to 'meta/recipes-graphics/wayland/weston-init/weston-start')
| -rwxr-xr-x | meta/recipes-graphics/wayland/weston-init/weston-start | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/meta/recipes-graphics/wayland/weston-init/weston-start b/meta/recipes-graphics/wayland/weston-init/weston-start index 0b93dc964a..0f1bc4c29d 100755 --- a/meta/recipes-graphics/wayland/weston-init/weston-start +++ b/meta/recipes-graphics/wayland/weston-init/weston-start | |||
| @@ -21,6 +21,14 @@ add_weston_argument() { | |||
| 21 | # Add openvt extra argument | 21 | # Add openvt extra argument |
| 22 | add_openvt_argument() { | 22 | add_openvt_argument() { |
| 23 | openvt_args="$openvt_args $1" | 23 | openvt_args="$openvt_args $1" |
| 24 | |||
| 25 | } | ||
| 26 | ## Add module to --modules argument | ||
| 27 | add_weston_module() { | ||
| 28 | if [[ "x${weston_modules}" == "x" ]]; then | ||
| 29 | weston_modules="--modules " | ||
| 30 | fi; | ||
| 31 | weston_modules+="${1}," | ||
| 24 | } | 32 | } |
| 25 | 33 | ||
| 26 | if [ -n "$WAYLAND_DISPLAY" ]; then | 34 | if [ -n "$WAYLAND_DISPLAY" ]; then |
| @@ -68,6 +76,9 @@ if [ -d "$modules_dir" ]; then | |||
| 68 | 76 | ||
| 69 | # process module | 77 | # process module |
| 70 | . $m | 78 | . $m |
| 79 | if [[ x"{$weston_modules}" != "x" ]]; then | ||
| 80 | add_weston_argument "${weston_modules}" | ||
| 81 | fi; | ||
| 71 | done | 82 | done |
| 72 | fi | 83 | fi |
| 73 | 84 | ||
