From 537afef2209bef327a28234207d1ef7e4e596a6e Mon Sep 17 00:00:00 2001 From: Tom Hochstein Date: Thu, 9 Jun 2016 14:27:05 -0500 Subject: weston-init: Use bitbake path variable Signed-off-by: Tom Hochstein Signed-off-by: Ross Burton --- meta/recipes-graphics/wayland/weston-init.bb | 1 + meta/recipes-graphics/wayland/weston-init/weston-start | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'meta/recipes-graphics/wayland') diff --git a/meta/recipes-graphics/wayland/weston-init.bb b/meta/recipes-graphics/wayland/weston-init.bb index e4e2701af7..291cd16b2a 100644 --- a/meta/recipes-graphics/wayland/weston-init.bb +++ b/meta/recipes-graphics/wayland/weston-init.bb @@ -15,6 +15,7 @@ do_install() { # Install weston-start script install -Dm755 ${WORKDIR}/weston-start ${D}${bindir}/weston-start sed -i 's,@DATADIR@,${datadir},g' ${D}${bindir}/weston-start + sed -i 's,@LOCALSTATEDIR@,${localstatedir},g' ${D}${bindir}/weston-start } inherit allarch update-rc.d distro_features_check systemd diff --git a/meta/recipes-graphics/wayland/weston-init/weston-start b/meta/recipes-graphics/wayland/weston-init/weston-start index 72ba4b7079..4b41576103 100755 --- a/meta/recipes-graphics/wayland/weston-init/weston-start +++ b/meta/recipes-graphics/wayland/weston-init/weston-start @@ -69,4 +69,4 @@ if test -z "$XDG_RUNTIME_DIR"; then chmod 0700 $XDG_RUNTIME_DIR fi -exec openvt $openvt_args -- $launcher $weston_args --log=/var/log/weston.log +exec openvt $openvt_args -- $launcher $weston_args --log=@LOCALSTATEDIR@/log/weston.log -- cgit v1.2.3