blob: f38d9282848ce09ac30667b95865f796b1b5b463 [file] [log] [blame]
FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
WESTONSTART ??= "/usr/bin/weston-launch -u root -- --idle-time=4294967 --tty=1"
WESTONSTOP ??= "/usr/bin/killall -s KILL weston"
do_install_append() {
sed -e 's,ExecStart=.*,ExecStart=${WESTONSTART},g' \
-e '/ExecStart/a\ExecStop=${WESTONSTOP}' \
-e '/EnvironmentFile/d' \
-i ${D}${systemd_system_unitdir}/weston.service
}