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 | |
} | |